Header And Logo

PostgreSQL
| The world's most advanced open source database.

sql3types.h

Go to the documentation of this file.
00001 #ifndef _ECPG_SQL3TYPES_H
00002 #define _ECPG_SQL3TYPES_H
00003 
00004 /* SQL3 dynamic type codes */
00005 
00006 /* chapter 13.1 table 2: Codes used for SQL data types in Dynamic SQL */
00007 
00008 enum
00009 {
00010     SQL3_CHARACTER = 1,
00011     SQL3_NUMERIC,
00012     SQL3_DECIMAL,
00013     SQL3_INTEGER,
00014     SQL3_SMALLINT,
00015     SQL3_FLOAT,
00016     SQL3_REAL,
00017     SQL3_DOUBLE_PRECISION,
00018     SQL3_DATE_TIME_TIMESTAMP,
00019     SQL3_INTERVAL,              /* 10 */
00020     SQL3_CHARACTER_VARYING = 12,
00021     SQL3_ENUMERATED,
00022     SQL3_BIT,
00023     SQL3_BIT_VARYING,
00024     SQL3_BOOLEAN,
00025     SQL3_abstract
00026     /* the rest is xLOB stuff */
00027 };
00028 
00029 /* chapter 13.1 table 3: Codes associated with datetime data types in Dynamic SQL */
00030 
00031 enum
00032 {
00033     SQL3_DDT_DATE = 1,
00034     SQL3_DDT_TIME,
00035     SQL3_DDT_TIMESTAMP,
00036     SQL3_DDT_TIME_WITH_TIME_ZONE,
00037     SQL3_DDT_TIMESTAMP_WITH_TIME_ZONE,
00038 
00039     SQL3_DDT_ILLEGAL            /* not a datetime data type (not part of
00040                                  * standard) */
00041 };
00042 
00043 #endif   /* !_ECPG_SQL3TYPES_H */