15 typedef unsigned char SQLCHAR;
17 #if (ODBCVER >= 0x0300)
18 typedef unsigned char SQLDATE;
19 typedef unsigned char SQLDECIMAL;
20 typedef double SQLDOUBLE;
21 typedef double SQLFLOAT;
24 typedef long SQLINTEGER;
26 #if (ODBCVER >= 0x0300)
27 typedef unsigned char SQLNUMERIC;
30 typedef void * SQLPOINTER;
32 #if (ODBCVER >= 0x0300)
33 typedef float SQLREAL;
36 typedef signed short int SQLSMALLINT;
37 typedef unsigned short SQLUSMALLINT;
39 #if (ODBCVER >= 0x0300)
40 typedef unsigned char SQLTIME;
41 typedef unsigned char SQLTIMESTAMP;
42 typedef unsigned char SQLVARCHAR;
45 typedef SQLSMALLINT SQLRETURN;
47 /* typedef void * SQLHANDLE; */
49 typedef SQLINTEGER SQLHANDLE;
50 #if (ODBCVER >= 0x0300)
52 typedef SQLHANDLE SQLHENV;
53 typedef SQLHANDLE SQLHDBC;
54 typedef SQLHANDLE SQLHSTMT;
55 typedef SQLHANDLE SQLHDESC;
58 typedef SQLINTEGER SQLHENV;
59 typedef SQLINTEGER SQLHDBC;
60 typedef SQLINTEGER SQLHSTMT;
63 typedef signed char SCHAR;
64 typedef SCHAR SQLSCHAR;
65 typedef long int SDWORD;
66 typedef signed short int SWORD;
67 typedef unsigned long int UDWORD;
68 typedef unsigned short int UWORD;
69 typedef UDWORD SQLUINTEGER;
70 typedef signed long SLONG;
71 typedef signed short SSHORT;
72 typedef double SDOUBLE;
73 typedef double LDOUBLE;
76 typedef signed short RETCODE;
77 typedef void* SQLHWND;
79 typedef SQLHANDLE HENV;
80 typedef SQLHANDLE HDBC;
81 typedef SQLHANDLE HSTMT;
85 typedef struct tagDATE_STRUCT
92 #if (ODBCVER >= 0x0300)
93 typedef DATE_STRUCT SQL_DATE_STRUCT;
96 typedef struct tagTIME_STRUCT
103 #if (ODBCVER >= 0x0300)
104 typedef TIME_STRUCT SQL_TIME_STRUCT;
107 typedef struct tagTIMESTAMP_STRUCT
115 SQLUINTEGER fraction;
118 #if (ODBCVER >= 0x0300)
119 typedef TIMESTAMP_STRUCT SQL_TIMESTAMP_STRUCT;
123 #if (ODBCVER >= 0x0300)
132 SQL_IS_YEAR_TO_MONTH = 7,
133 SQL_IS_DAY_TO_HOUR = 8,
134 SQL_IS_DAY_TO_MINUTE = 9,
135 SQL_IS_DAY_TO_SECOND = 10,
136 SQL_IS_HOUR_TO_MINUTE = 11,
137 SQL_IS_HOUR_TO_SECOND = 12,
138 SQL_IS_MINUTE_TO_SECOND = 13
143 #if (ODBCVER >= 0x0300)
144 typedef struct tagSQL_YEAR_MONTH
148 } SQL_YEAR_MONTH_STRUCT;
150 typedef struct tagSQL_DAY_SECOND
156 SQLUINTEGER fraction;
157 } SQL_DAY_SECOND_STRUCT;
159 typedef struct tagSQL_INTERVAL_STRUCT
161 SQLINTERVAL interval_type;
162 SQLSMALLINT interval_sign;
164 SQL_YEAR_MONTH_STRUCT year_month;
165 SQL_DAY_SECOND_STRUCT day_second;
168 } SQL_INTERVAL_STRUCT;
174 #if (ODBCVER >= 0x0300)
175 #define ODBCINT64 long
177 typedef ODBCINT64 SQLBIGINT;
178 typedef unsigned ODBCINT64 SQLUBIGINT;
182 #if (ODBCVER >= 0x0300)
183 #define SQL_MAX_NUMERIC_LEN 16
184 typedef struct tagSQL_NUMERIC_STRUCT
188 SQLCHAR sign; /* 1=pos 0=neg */
189 SQLCHAR val[SQL_MAX_NUMERIC_LEN];
190 } SQL_NUMERIC_STRUCT;
193 #if (ODBCVER >= 0x0350)
195 typedef GUID SQLGUID;
197 typedef struct tagSQLGUID
208 typedef unsigned long int BOOKMARK;
210 #define SQL_WCHAR (-8)
211 #define SQL_C_WCHAR SQL_WCHAR