]> git.saurik.com Git - wxWidgets.git/blame - src/iodbc/herr.h
minValue and maxValue are interpreted correctly in SetRange() (were inversed)
[wxWidgets.git] / src / iodbc / herr.h
CommitLineData
1a6944fd
RR
1#ifndef _HERR_H
2#define _HERR_H
3
4typedef enum {
5 en_00000 = 0,
6 en_01000,
7 en_01002,
8 en_01004,
9 en_01006,
10 en_01S00,
11 en_01S01,
12 en_01S02,
13 en_01S03,
14 en_01S04,
15 en_07001,
16 en_07006,
17 en_08001,
18 en_08002,
19 en_08003,
20 en_08004,
21 en_08007,
22 en_08S01,
23 en_21S01,
24 en_21S02,
25 en_22001,
26 en_22003,
27 en_22005,
28 en_22008,
29 en_22012,
30 en_22026,
31 en_23000,
32 en_24000,
33 en_25000,
34 en_28000,
35 en_34000,
36 en_37000,
37 en_3C000,
38 en_40001,
39 en_42000,
40 en_70100,
41 en_IM001,
42 en_IM002,
43 en_IM003,
44 en_IM004,
45 en_IM005,
46 en_IM006,
47 en_IM007,
48 en_IM008,
49 en_IM009,
50 en_IM010,
51 en_IM011,
52 en_IM012,
53 en_IM013,
54 en_IM014,
55 en_S0001,
56 en_S0002,
57 en_S0011,
58 en_S0012,
59 en_S0021,
60 en_S0022,
61 en_S0023,
62 en_S1000,
63 en_S1001,
64 en_S1002,
65 en_S1003,
66 en_S1004,
67 en_S1008,
68 en_S1009,
69 en_S1010,
70 en_S1011,
71 en_S1012,
72 en_S1015,
73 en_S1090,
74 en_S1091,
75 en_S1092,
76 en_S1093,
77 en_S1094,
78 en_S1095,
79 en_S1096,
80 en_S1097,
81 en_S1098,
82 en_S1099,
83 en_S1100,
84 en_S1101,
85 en_S1103,
86 en_S1104,
87 en_S1105,
88 en_S1106,
89 en_S1107,
90 en_S1108,
91 en_S1109,
92 en_S1110,
93 en_S1111,
94 en_S1C00,
95 en_S1T00,
96 en_sqlstat_total
97} sqlstcode_t;
98
99typedef void FAR* HERR;
100# define SQL_NULL_HERR ((HERR)NULL)
101
102typedef struct
103{
104 sqlstcode_t code;
105 char FAR* stat;
106 char FAR* msg;
107} sqlerrmsg_t;
108
109typedef struct sqlerr {
110 sqlstcode_t code;
111 int idx;
112 char FAR* msg;
113 struct sqlerr* next;
114} sqlerr_t;
115
116extern void _iodbcdm_freesqlerrlist( HERR herr );
117extern HERR _iodbcdm_pushsqlerr ( HERR list, sqlstcode_t code, char* sysmsg );
118
119# define PUSHSYSERR(list, msg) \
120 list = (HERR)_iodbcdm_pushsqlerr( (HERR)(list), 0, (char*)msg )
121# define PUSHSQLERR(list, code) \
122 list = (HERR)_iodbcdm_pushsqlerr( (HERR)(list), (int)(code), NULL )
123
124
125#endif /* _SQLERR_H */