1#ifndef _ECPG_SQL3TYPES_H
2#define _ECPG_SQL3TYPES_H
3
4/* SQL3 dynamic type codes */
5
6/* chapter 13.1 table 2: Codes used for SQL data types in Dynamic SQL */
7
8enum
9{
10 SQL3_CHARACTER = 1,
11 SQL3_NUMERIC,
12 SQL3_DECIMAL,
13 SQL3_INTEGER,
14 SQL3_SMALLINT,
15 SQL3_FLOAT,
16 SQL3_REAL,
17 SQL3_DOUBLE_PRECISION,
18 SQL3_DATE_TIME_TIMESTAMP,
19 SQL3_INTERVAL, /* 10 */
20 SQL3_CHARACTER_VARYING = 12,
21 SQL3_ENUMERATED,
22 SQL3_BIT,
23 SQL3_BIT_VARYING,
24 SQL3_BOOLEAN,
25 SQL3_abstract
26 /* the rest is xLOB stuff */
27};
28
29/* chapter 13.1 table 3: Codes associated with datetime data types in Dynamic SQL */
30
31enum
32{
33 SQL3_DDT_DATE = 1,
34 SQL3_DDT_TIME,
35 SQL3_DDT_TIMESTAMP,
36 SQL3_DDT_TIME_WITH_TIME_ZONE,
37 SQL3_DDT_TIMESTAMP_WITH_TIME_ZONE,
38
39 SQL3_DDT_ILLEGAL /* not a datetime data type (not part of
40 * standard) */
41};
42
43#endif /* !_ECPG_SQL3TYPES_H */
44