LOTUS CONNECTORS


ODBC Data Types
The following tables show the correspondences of ODBC to LEI data types for various types of activities.
For more information on the organization of these tables, see the section “Notes on Connector Data Type Conversion Tables” in Chapter 3.

Note When using the IBM Client Access ODBC driver to insert data into the DB2 UDB for iSeries multi-byte data types ETYPE and JTYPE, DBCS data may need to be the exact length of the external type. When storing double-byte character set data to columns of these types, if the error "SQL0406 -- Conversion error on assignment to column" is incorrectly generated, then the data being written should first be padded to the exact length of the DB2 UDB for iSeries column.

Note Only listed data types are supported.

Execute

Since ODBC data sources may not support all ODBC data types in a table, the Lotus Connector for ODBC will begin with the most likely type from the relevant row in the table below and continue until it finds a type supported in the current data source.
ODBCLotus Connector API
BITInt
TINYINTInt
SMALLINTInt
INTEGERInt
BIGINTInt
REALFloat
FLOATFloat
DOUBLEFloat
DECIMALprec-scale<=9, scale<=0Int
DECIMALprec <= 15Float
DECIMALOtherNumeric
NUMERICprec-scale<=9, scale<=0Int
NUMERICprec <= 15Float
NUMERICotherNumeric
DATEDatetime
TIMEDatetime
TIMESTAMPDatetime
CHARText (fixed length, bound <= 254)
VARCHARText (variable length, bound <= 254)
LONGVARCHARText (variable length, unbounded)
BINARYBinary (fixed length, bound <= 255)
VARBINARYBinary (variable length, bound <= 255)
LONGVARBINARYBinary (variable length, unbounded)

Fetch

Note that since ODBC data sources may not support all ODBC data types in a table, the Lotus Connector for ODBC will begin with the most likely type from the relevant row in the table below and continue until it finds a type supported in the current data source.
Lotus Connector APIODBC
IntBIT, TINYINT, SMALLINT, INTEGER, BIGINT (o), REAL (o), FLOAT (p, o), DOUBLE (p, o), DECIMAL (p, o), NUMERIC (p, o)
FloatBIT, TINYINT, SMALLINT, INTEGER, BIGINT (p), REAL, FLOAT, DOUBLE, DECIMAL (p, o), NUMERIC (p, o)
CurrencyBIT, TINYINT, SMALLINT, INTEGER, BIGINT (p, o), REAL (o), FLOAT (o), DOUBLE (o), DECIMAL (p, o), NUMERIC (p, o)
NumericBIT, TINYINT (p, o), SMALLINT (p, o), INTEGER (p, o), BIGINT (p, o), REAL (p, o), FLOAT (p, o), DOUBLE (p, o), DECIMAL (p, o), NUMERIC (p, o)
DatetimeDATE, TIME, TIMESTAMP
Text (o)CHAR, VARCHAR, LONGVARCHAR, BINARY, VARBINARY, LONGVARBINARY
Binary (o)BLOBCHAR, VARCHAR, LONGVARCHAR, BINARY, VARBINARY, LONGVARBINARY
non-BLOBInvalid

Insert/Update

Note that since ODBC data sources may not support all ODBC data types in a table, the Lotus Connector for ODBC will begin with the most likely type from the relevant row in the table below and continue until it finds a type supported in the current data source.
Lotus Connector APIODBC
IntBIT (p), TINYINT (p, o), SMALLINT (p, o), INTEGER, BIGINT, REAL (p), FLOAT, DOUBLE, DECIMAL (p), NUMERIC (p)
FloatBIT (p), TINYINT (p, o), SMALLINT (p, o), INTEGER(p, o), BIGINT (p, o), REAL (p, o), FLOAT, DOUBLE, DECIMAL (p), NUMERIC (p)
CurrencyBIT (p), TINYINT (p, o), SMALLINT (p, o), INTEGER(p, o), BIGINT (p, o), REAL (p), FLOAT (p, o), DOUBLE (p, o), DECIMAL (p), NUMERIC (p)
NumericBIT, TINYINT (p, o), SMALLINT (p, o), INTEGER (p, o), BIGINT (p, o), REAL (p), FLOAT (p), DOUBLE (p), DECIMAL (p, o), NUMERIC (p, o)
DatetimeDATE (p), TIME (o), TIMESTAMP. For Insert/Update into a TIME col, an overflow check is performed, not a precision check.
TextCHAR (o), VARCHAR (o), LONGVARCHAR, BINARY (o), VARBINARY (o), LONGVARBINARY
BinaryanyCHAR (o), VARCHAR (o), LONGVARCHAR, BINARY (o), VARBINARY (o), LONGVARBINARY
number listBIT (p), TINYINT (p, o), SMALLINT (p, o), INTEGER(p, o), BIGINT (p, o), REAL (p, o), FLOAT, DOUBLE, DECIMAL (p), NUMERIC (p)
datetime listDATE (p), TIME (p), TIMESTAMP

Create

Since ODBC data sources may not support all ODBC data types in a table, the Lotus Connector for ODBC will begin with the most likely type from the relevant row in the table below and continue until it finds a type supported in the current data source.
Lotus Connector APIODBC
IntINTEGER, SMALLINT, TINYINT, BIGINT, DECIMAL, or NUMERIC
FloatFLOAT, DOUBLE, REAL, DECIMAL, NUMERIC, or INTEGER
CurrencyNUMERIC, DECIMAL, FLOAT, DOUBLE, or INTEGER
NumericNUMERIC, DECIMAL, FLOAT, DOUBLE, or INTEGER
DatetimeTIMESTAMP, DATE, or TIME
TextCHAR (fixed, len<=254), VARCHAR (variable, len<=254), or LONGVARCHAR (len>254)
BinaryBLOBBINARY(fixed, len<=255), VARBINARY (variable, len<=255), or LONGVARBINARY (len>255)
compositeCHAR (fixed, len<=254), VARCHAR (variable, len<=254), or LONGVARCHAR (len>254)
number listFLOAT, DOUBLE, REAL, DECIMAL, NUMERIC, or INTEGER
datetime listTIMESTAMP, DATE, or TIME
text listCHAR (fixed, len<=254), VARCHAR (variable, len<=254), or LONGVARCHAR (len>254)