ESQL/C data type constants
You assign the data
type to a host variable in the program.
The following table shows these constants.
ESQL/C data type | Constant | Integer value |
---|---|---|
char | CCHARTYPE | 100 |
short int | CSHORTTYPE | 101 |
int4 | CINTTYPE | 102 |
long | CLONGTYPE | 103 |
float | CFLOATTYPE | 104 |
double | CDOUBLETYPE | 105 |
dec_t or decimal | CDECIMALTYPE | 107 |
fixchar | CFIXCHARTYPE | 108 |
string | CSTRINGTYPE | 109 |
date | CDATETYPE | 110 |
dec_t or decimal | CMONEYTYPE | 111 |
datetime or dtime_t | CDTIMETYPE | 112 |
ifx_loc_t or loc_t | CLOCATORTYPE | 113 |
varchar | CVCHARTYPE | 114 |
intrvl_t or interval | CINVTYPE | 115 |
char | CFILETYPE | 116 |
int8 | CINT8TYPE | 117 |
collection | CCOLTYPE | 118 |
lvarchar | CLVCHARTYPE | 119 |
fixed binary | CFIXBINTYPE | 120 |
var binary | CVARBINTYPE | 121 |
boolean | CBOOLTYPE | 122 |
row | CROWTYPE | 123 |
You can use these data types as arguments for some of the functions in the library. For example, both the rtypalign() and rtypmsize() functions require data type values as arguments.