1#ifndef ECPG_SQLTYPES_H
2#define ECPG_SQLTYPES_H
3
4#include <limits.h>
5
6#define CCHARTYPE ECPGt_char
7#define CSHORTTYPE ECPGt_short
8#define CINTTYPE ECPGt_int
9#define CLONGTYPE ECPGt_long
10#define CFLOATTYPE ECPGt_float
11#define CDOUBLETYPE ECPGt_double
12#define CDECIMALTYPE ECPGt_decimal
13#define CFIXCHARTYPE 108
14#define CSTRINGTYPE ECPGt_char
15#define CDATETYPE ECPGt_date
16#define CMONEYTYPE 111
17#define CDTIMETYPE ECPGt_timestamp
18#define CLOCATORTYPE 113
19#define CVCHARTYPE ECPGt_varchar
20#define CINVTYPE 115
21#define CFILETYPE 116
22#define CINT8TYPE ECPGt_long_long
23#define CCOLLTYPE 118
24#define CLVCHARTYPE 119
25#define CFIXBINTYPE 120
26#define CVARBINTYPE 121
27#define CBOOLTYPE ECPGt_bool
28#define CROWTYPE 123
29#define CLVCHARPTRTYPE 124
30#define CTYPEMAX 25
31
32/*
33 * Values used in sqlda->sqlvar[i]->sqltype
34 */
35#define SQLCHAR ECPGt_char
36#define SQLSMINT ECPGt_short
37#define SQLINT ECPGt_int
38#define SQLFLOAT ECPGt_double
39#define SQLSMFLOAT ECPGt_float
40#define SQLDECIMAL ECPGt_decimal
41#define SQLSERIAL ECPGt_int
42#define SQLDATE ECPGt_date
43#define SQLDTIME ECPGt_timestamp
44#define SQLTEXT ECPGt_char
45#define SQLVCHAR ECPGt_char
46#define SQLINTERVAL ECPGt_interval
47#define SQLNCHAR ECPGt_char
48#define SQLNVCHAR ECPGt_char
49#ifdef HAVE_LONG_LONG_INT_64
50#define SQLINT8 ECPGt_long_long
51#define SQLSERIAL8 ECPGt_long_long
52#else
53#define SQLINT8 ECPGt_long
54#define SQLSERIAL8 ECPGt_long
55#endif
56
57#endif /* ndef ECPG_SQLTYPES_H */
58