ReactOS 0.4.15-dev-7924-g5949c20
sqltypes.h
Go to the documentation of this file.
1#ifndef __SQLTYPES
2#define __SQLTYPES
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#define SQL_API __stdcall
9
10#ifndef RC_INVOKED
11#define __need_wchar_t
12#include <stddef.h>
13
14typedef signed char SCHAR;
15typedef long SDWORD;
16typedef short SWORD;
17typedef ULONG UDWORD;
18typedef USHORT UWORD;
19typedef signed long SLONG;
20typedef signed short SSHORT;
21typedef double SDOUBLE;
22typedef double LDOUBLE;
23typedef float SFLOAT;
24typedef PVOID PTR;
25typedef PVOID HENV;
26typedef PVOID HDBC;
27typedef PVOID HSTMT;
28typedef short RETCODE;
29typedef UCHAR SQLCHAR;
35typedef void* SQLHENV;
36typedef void* SQLHDBC;
37typedef void* SQLHSTMT;
39typedef HWND SQLHWND;
40
41#ifdef _WIN64
42typedef INT64 SQLLEN;
43typedef UINT64 SQLULEN;
44typedef UINT64 SQLSETPOSIROW;
45#else
46#define SQLLEN SQLINTEGER
47#define SQLULEN SQLUINTEGER
48#define SQLSETPOSIROW SQLUSMALLINT
49#endif /* _WIN64 */
50
55
56typedef wchar_t SQLWCHAR;
57#ifdef UNICODE
58typedef SQLWCHAR SQLTCHAR;
59#else
61#endif /* UNICODE */
62
63typedef struct tagDATE_STRUCT {
68typedef struct tagTIME_STRUCT {
73typedef struct tagTIMESTAMP_STRUCT {
82
83#if (ODBCVER >= 0x0300)
84typedef SCHAR SQLSCHAR;
85typedef void* SQLHANDLE;
86typedef void* SQLHDESC;
87typedef unsigned char SQLDATE;
88typedef unsigned char SQLDECIMAL;
89typedef double SQLDOUBLE;
90typedef double SQLFLOAT;
91typedef unsigned char SQLNUMERIC;
92typedef float SQLREAL;
93typedef unsigned char SQLTIME;
94typedef unsigned char SQLTIMESTAMP;
95typedef unsigned char SQLVARCHAR;
96#define ODBCINT64 __int64
97typedef __int64 SQLBIGINT;
98typedef unsigned __int64 SQLUBIGINT;
99typedef DATE_STRUCT SQL_DATE_STRUCT;
100typedef TIME_STRUCT SQL_TIME_STRUCT;
101typedef TIMESTAMP_STRUCT SQL_TIMESTAMP_STRUCT;
102typedef enum {
103 SQL_IS_YEAR = 1,SQL_IS_MONTH,SQL_IS_DAY,SQL_IS_HOUR,
104 SQL_IS_MINUTE,SQL_IS_SECOND,SQL_IS_YEAR_TO_MONTH,SQL_IS_DAY_TO_HOUR,
105 SQL_IS_DAY_TO_MINUTE,SQL_IS_DAY_TO_SECOND,SQL_IS_HOUR_TO_MINUTE,
106 SQL_IS_HOUR_TO_SECOND,SQL_IS_MINUTE_TO_SECOND
107} SQLINTERVAL;
108typedef struct tagSQL_YEAR_MONTH {
109 SQLUINTEGER year;
111} SQL_YEAR_MONTH_STRUCT;
112typedef struct tagSQL_DAY_SECOND {
114 SQLUINTEGER hour;
115 SQLUINTEGER minute;
116 SQLUINTEGER second;
117 SQLUINTEGER fraction;
118} SQL_DAY_SECOND_STRUCT;
119typedef struct tagSQL_INTERVAL_STRUCT {
120 SQLINTERVAL interval_type;
121 SQLSMALLINT interval_sign;
122 union {
123 SQL_YEAR_MONTH_STRUCT year_month;
124 SQL_DAY_SECOND_STRUCT day_second;
125 } intval;
126} SQL_INTERVAL_STRUCT;
127#define SQL_MAX_NUMERIC_LEN 16
128typedef struct tagSQL_NUMERIC_STRUCT {
130 SQLSCHAR scale;
132 SQLCHAR val[SQL_MAX_NUMERIC_LEN];
133} SQL_NUMERIC_STRUCT;
134#endif /* ODBCVER >= 0x0300 */
135
136#if (ODBCVER >= 0x0350)
137
138#ifdef _GUID_DEFINED
139# warning _GUID_DEFINED is deprecated, use GUID_DEFINED instead
140#endif
141
142#if defined _GUID_DEFINED || defined GUID_DEFINED
143typedef GUID SQLGUID;
144#else
145typedef struct tagSQLGUID{
146 DWORD Data1;
147 WORD Data2;
148 WORD Data3;
149 BYTE Data4[ 8 ];
150} SQLGUID;
151#endif /* GUID_DEFINED */
152#endif /* ODBCVER >= 0x0350 */
153#endif /* RC_INVOKED */
154
155#ifdef __cplusplus
156}
157#endif
158
159#endif /* __SQLTYPES */
unsigned long long UINT64
signed long long INT64
#define __int64
Definition: basetyps.h:16
static DOUBLE day(DOUBLE time)
Definition: date.c:117
static const WCHAR month[12][4]
Definition: session.c:2150
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
GLenum GLenum GLenum GLenum GLenum scale
Definition: glext.h:9032
GLuint GLfloat * val
Definition: glext.h:7180
GLenum GLint GLint * precision
Definition: glext.h:7539
unsigned short UWORD
Definition: lzx.c:49
#define sign(x)
Definition: mapdesc.cc:613
unsigned short USHORT
Definition: pedump.c:61
UCHAR SQLCHAR
Definition: sqltypes.h:29
float SFLOAT
Definition: sqltypes.h:23
void * SQLHDBC
Definition: sqltypes.h:36
#define SQLULEN
Definition: sqltypes.h:47
void * SQLHSTMT
Definition: sqltypes.h:37
struct tagDATE_STRUCT DATE_STRUCT
ULONG UDWORD
Definition: sqltypes.h:17
PVOID HENV
Definition: sqltypes.h:25
HWND SQLHWND
Definition: sqltypes.h:39
SQLCHAR SQLTCHAR
Definition: sqltypes.h:60
double LDOUBLE
Definition: sqltypes.h:22
#define SQLLEN
Definition: sqltypes.h:46
UWORD SQLUSMALLINT
Definition: sqltypes.h:33
SDWORD SQLINTEGER
Definition: sqltypes.h:30
struct tagTIMESTAMP_STRUCT TIMESTAMP_STRUCT
long SDWORD
Definition: sqltypes.h:15
signed long SLONG
Definition: sqltypes.h:19
USHORT UWORD
Definition: sqltypes.h:18
wchar_t SQLWCHAR
Definition: sqltypes.h:56
SQLULEN SQLTRANSID
Definition: sqltypes.h:54
PVOID PTR
Definition: sqltypes.h:24
double SDOUBLE
Definition: sqltypes.h:21
PVOID SQLPOINTER
Definition: sqltypes.h:34
struct tagTIME_STRUCT TIME_STRUCT
signed char SCHAR
Definition: sqltypes.h:14
SQLULEN BOOKMARK
Definition: sqltypes.h:51
PVOID HSTMT
Definition: sqltypes.h:27
void * SQLHENV
Definition: sqltypes.h:35
PVOID HDBC
Definition: sqltypes.h:26
signed short SSHORT
Definition: sqltypes.h:20
short RETCODE
Definition: sqltypes.h:28
short SWORD
Definition: sqltypes.h:16
SQLULEN SQLROWCOUNT
Definition: sqltypes.h:53
SWORD SQLSMALLINT
Definition: sqltypes.h:31
#define SQLSETPOSIROW
Definition: sqltypes.h:48
SQLSMALLINT SQLRETURN
Definition: sqltypes.h:38
SQLLEN SQLROWOFFSET
Definition: sqltypes.h:52
UDWORD SQLUINTEGER
Definition: sqltypes.h:32
SQLSMALLINT year
Definition: sqltypes.h:64
SQLUSMALLINT day
Definition: sqltypes.h:66
SQLUSMALLINT month
Definition: sqltypes.h:65
SQLUSMALLINT hour
Definition: sqltypes.h:77
SQLUINTEGER fraction
Definition: sqltypes.h:80
SQLUSMALLINT second
Definition: sqltypes.h:79
SQLSMALLINT year
Definition: sqltypes.h:74
SQLUSMALLINT month
Definition: sqltypes.h:75
SQLUSMALLINT day
Definition: sqltypes.h:76
SQLUSMALLINT minute
Definition: sqltypes.h:78
SQLUSMALLINT hour
Definition: sqltypes.h:69
SQLUSMALLINT minute
Definition: sqltypes.h:70
SQLUSMALLINT second
Definition: sqltypes.h:71
uint32_t ULONG
Definition: typedefs.h:59
unsigned char UCHAR
Definition: xmlstorage.h:181
unsigned char BYTE
Definition: xxhash.c:193