Data Type | Length | Precision/ Scale | C Type | SQL Type |
---|---|---|---|---|
IIAPI_BOOL_TYPE | 1 | 0/0 | U_char | boolean |
IIAPI_BYTE_TYPE | n | 0/0 | char* | byte(n) |
IIAPI_CHA_TYPE | n | 0/0 | char* | char(n) |
IIAPI_CHR_TYPE | n | 0/0 | char* | c(n) |
IIAPI_HNDL_TYPE | 4 | 0/0 | void* | n/a |
IIAPI_DATE_TYPE | 4 | 0/0 | none | ansidate |
IIAPI_DEC_TYPE | 1-16 (dep. on precision) | p/s | none | decimal(p,s) |
IIAPI_INTDS_TYPE | 12 | p/0 | none | interval day to second |
IIAPI_DTE_TYPE | 12 | 0/0 | none | ingresdate |
IIAPI_FLT_TYPE | 4 8 | p/0 | float double | float4/real float8/float |
IIAPI_INT_TYPE | 1 2 4 8 | 0/0 | char short long long long | integer1 integer2/smallint integer4/integer integer8/bigint |
IIAPI_INTYM_TYPE | 3 | p/0 | none | interval year to month |
IIAPI_IPV4_TYPE | 4 | 0/0 | char* | ipv4 |
IIAPI_IPV6_TYPE | 16 | 0/0 | char* | ipv6 |
IIAPI_LOGKEY_TYPE | 16 | 0/0 | char* | object_key |
IIAPI_LBYTE_TYPE | (max 2 GB) | 0/0 | char* | long byte |
IIAPI_NBLOC_TYPE | 4 | 0/0 | long | long byte locator |
IIAPI_NCLOC_TYPE | 4 | 0/0 | long | long varchar locator |
IIAPI_LNLOC_TYPE | 4 | 0/0 | long | long nvarchar locator |
IIAPI_LNVCH_TYPE | (max 2 GB) | 0/0 | short* | long nvarchar |
IIAPI_LVCH_TYPE | (max 2 GB) | 0/0 | char* | long varchar |
IIAPI_LTXT_TYPE | n | 0/0 | char* | null |
IIAPI_MNY_TYPE | 8 | p/0 | none | money |
IIAPI_NCHA_TYPE | n | 0/0 | short* | nchar(n) |
IIAPI_NVCH_TYPE | n | 0/0 | short* | nvarchar(n) |
IIAPI_TABKEY_TYPE | 8 | 0/0 | char* | table_key |
IIAPI_TIME_TYPE | 10 | p/0 | none | time with local time zone |
IIAPI_TMWO_TYPE | 10 | p/0 | none | time without time zone |
IIAPI_TMTZ_TYPE | 10 | p/0 | none | time with time zone |
IIAPI_TSWO_TYPE | 14 | p/0 | none | timestamp without time zone |
IIAPI_TSTZ_TYPE | 14 | p/0 | none | timestamp with time zone |
IIAPI_TS_TYPE | 14 | p/0 | none | timestamp with local time zone |
IIAPI_TXT_TYPE | n | 0/0 | char* | text(n) |
IIAPI_UUID_TYPE | 16 | 0/0 | char* | uuid |
IIAPI_VBTYE_TYPE | n | 0/0 | char* | varbyte(n) |
IIAPI_VCH_TYPE | n | 0/0 | char* | varchar(n) |