]> git.saurik.com Git - wxWidgets.git/blame - src/iodbc/odbc_funcs.h
added an error message if a bitmap can't be addedto the image list
[wxWidgets.git] / src / iodbc / odbc_funcs.h
CommitLineData
1a6944fd
RR
1#define SQLRETURN RETCODE
2SQLRETURN SQL_API SQLDriverConnect(
3 SQLHDBC hdbc,
4 SQLHWND hwnd,
5 SQLCHAR FAR *szConnStrIn,
6 SQLSMALLINT cbConnStrIn,
7 SQLCHAR FAR *szConnStrOut,
8 SQLSMALLINT cbConnStrOutMax,
9 SQLSMALLINT FAR *pcbConnStrOut,
10 SQLUSMALLINT fDriverCompletion);
11
12SQLRETURN SQL_API SQLBrowseConnect(
13 SQLHDBC hdbc,
14 SQLCHAR FAR *szConnStrIn,
15 SQLSMALLINT cbConnStrIn,
16 SQLCHAR FAR *szConnStrOut,
17 SQLSMALLINT cbConnStrOutMax,
18 SQLSMALLINT FAR *pcbConnStrOut);
19
20SQLRETURN SQL_API SQLColumnPrivileges(
21 SQLHSTMT hstmt,
22 SQLCHAR FAR *szCatalogName,
23 SQLSMALLINT cbCatalogName,
24 SQLCHAR FAR *szSchemaName,
25 SQLSMALLINT cbSchemaName,
26 SQLCHAR FAR *szTableName,
27 SQLSMALLINT cbTableName,
28 SQLCHAR FAR *szColumnName,
29 SQLSMALLINT cbColumnName);
30
31SQLRETURN SQL_API SQLDescribeParam(
32 SQLHSTMT hstmt,
33 SQLUSMALLINT ipar,
34 SQLSMALLINT FAR *pfSqlType,
35 SQLUINTEGER FAR *pcbParamDef,
36 SQLSMALLINT FAR *pibScale,
37 SQLSMALLINT FAR *pfNullable);
38
39SQLRETURN SQL_API SQLExtendedFetch(
40 SQLHSTMT hstmt,
41 SQLUSMALLINT fFetchType,
42 SQLINTEGER irow,
43 SQLUINTEGER FAR *pcrow,
44 SQLUSMALLINT FAR *rgfRowStatus);
45
46SQLRETURN SQL_API SQLForeignKeys(
47 SQLHSTMT hstmt,
48 SQLCHAR FAR *szPkCatalogName,
49 SQLSMALLINT cbPkCatalogName,
50 SQLCHAR FAR *szPkSchemaName,
51 SQLSMALLINT cbPkSchemaName,
52 SQLCHAR FAR *szPkTableName,
53 SQLSMALLINT cbPkTableName,
54 SQLCHAR FAR *szFkCatalogName,
55 SQLSMALLINT cbFkCatalogName,
56 SQLCHAR FAR *szFkSchemaName,
57 SQLSMALLINT cbFkSchemaName,
58 SQLCHAR FAR *szFkTableName,
59 SQLSMALLINT cbFkTableName);
60
61SQLRETURN SQL_API SQLMoreResults(
62 SQLHSTMT hstmt);
63
64SQLRETURN SQL_API SQLNativeSql(
65 SQLHDBC hdbc,
66 SQLCHAR FAR *szSqlStrIn,
67 SQLINTEGER cbSqlStrIn,
68 SQLCHAR FAR *szSqlStr,
69 SQLINTEGER cbSqlStrMax,
70 SQLINTEGER FAR *pcbSqlStr);
71
72SQLRETURN SQL_API SQLNumParams(
73 SQLHSTMT hstmt,
74 SQLSMALLINT FAR *pcpar);
75
76SQLRETURN SQL_API SQLParamOptions(
77 SQLHSTMT hstmt,
78 SQLUINTEGER crow,
79 SQLUINTEGER FAR *pirow);
80
81SQLRETURN SQL_API SQLPrimaryKeys(
82 SQLHSTMT hstmt,
83 SQLCHAR FAR *szCatalogName,
84 SQLSMALLINT cbCatalogName,
85 SQLCHAR FAR *szSchemaName,
86 SQLSMALLINT cbSchemaName,
87 SQLCHAR FAR *szTableName,
88 SQLSMALLINT cbTableName);
89
90SQLRETURN SQL_API SQLProcedureColumns(
91 SQLHSTMT hstmt,
92 SQLCHAR FAR *szCatalogName,
93 SQLSMALLINT cbCatalogName,
94 SQLCHAR FAR *szSchemaName,
95 SQLSMALLINT cbSchemaName,
96 SQLCHAR FAR *szProcName,
97 SQLSMALLINT cbProcName,
98 SQLCHAR FAR *szColumnName,
99 SQLSMALLINT cbColumnName);
100
101SQLRETURN SQL_API SQLProcedures(
102 SQLHSTMT hstmt,
103 SQLCHAR FAR *szCatalogName,
104 SQLSMALLINT cbCatalogName,
105 SQLCHAR FAR *szSchemaName,
106 SQLSMALLINT cbSchemaName,
107 SQLCHAR FAR *szProcName,
108 SQLSMALLINT cbProcName);
109
110SQLRETURN SQL_API SQLSetPos(
111 SQLHSTMT hstmt,
112 SQLUSMALLINT irow,
113 SQLUSMALLINT fOption,
114 SQLUSMALLINT fLock);
115
116SQLRETURN SQL_API SQLTablePrivileges(
117 SQLHSTMT hstmt,
118 SQLCHAR FAR *szCatalogName,
119 SQLSMALLINT cbCatalogName,
120 SQLCHAR FAR *szSchemaName,
121 SQLSMALLINT cbSchemaName,
122 SQLCHAR FAR *szTableName,
123 SQLSMALLINT cbTableName);
124
125SQLRETURN SQL_API SQLDrivers(
126 SQLHENV henv,
127 SQLUSMALLINT fDirection,
128 SQLCHAR FAR *szDriverDesc,
129 SQLSMALLINT cbDriverDescMax,
130 SQLSMALLINT FAR *pcbDriverDesc,
131 SQLCHAR FAR *szDriverAttributes,
132 SQLSMALLINT cbDrvrAttrMax,
133 SQLSMALLINT FAR *pcbDrvrAttr);
134
135SQLRETURN SQL_API SQLBindParameter(
136 SQLHSTMT hstmt,
137 SQLUSMALLINT ipar,
138 SQLSMALLINT fParamType,
139 SQLSMALLINT fCType,
140 SQLSMALLINT fSqlType,
141 SQLUINTEGER cbColDef,
142 SQLSMALLINT ibScale,
143 SQLPOINTER rgbValue,
144 SQLINTEGER cbValueMax,
145 SQLINTEGER FAR *pcbValue);
146
147SQLRETURN SQL_API SQLAllocConnect(
148 SQLHENV henv,
149 SQLHDBC FAR *phdbc);
150
151SQLRETURN SQL_API SQLAllocEnv(
152 SQLHENV FAR *phenv);
153
154SQLRETURN SQL_API SQLAllocStmt(
155 SQLHDBC hdbc,
156 SQLHSTMT FAR *phstmt);
157
158SQLRETURN SQL_API SQLBindCol(
159 SQLHSTMT hstmt,
160 SQLUSMALLINT icol,
161 SQLSMALLINT fCType,
162 SQLPOINTER rgbValue,
163 SQLINTEGER cbValueMax,
164 SQLINTEGER FAR *pcbValue);
165
166SQLRETURN SQL_API SQLCancel(
167 SQLHSTMT hstmt);
168
169SQLRETURN SQL_API SQLColAttributes(
170 SQLHSTMT hstmt,
171 SQLUSMALLINT icol,
172 SQLUSMALLINT fDescType,
173 SQLPOINTER rgbDesc,
174 SQLSMALLINT cbDescMax,
175 SQLSMALLINT FAR *pcbDesc,
176 SQLINTEGER FAR *pfDesc);
177
178SQLRETURN SQL_API SQLConnect(
179 SQLHDBC hdbc,
180 SQLCHAR FAR *szDSN,
181 SQLSMALLINT cbDSN,
182 SQLCHAR FAR *szUID,
183 SQLSMALLINT cbUID,
184 SQLCHAR FAR *szAuthStr,
185 SQLSMALLINT cbAuthStr);
186
187SQLRETURN SQL_API SQLDescribeCol(
188 SQLHSTMT hstmt,
189 SQLUSMALLINT icol,
190 SQLCHAR FAR *szColName,
191 SQLSMALLINT cbColNameMax,
192 SQLSMALLINT FAR *pcbColName,
193 SQLSMALLINT FAR *pfSqlType,
194 SQLUINTEGER FAR *pcbColDef,
195 SQLSMALLINT FAR *pibScale,
196 SQLSMALLINT FAR *pfNullable);
197
198SQLRETURN SQL_API SQLDisconnect(
199 SQLHDBC hdbc);
200
201SQLRETURN SQL_API SQLError(
202 SQLHENV henv,
203 SQLHDBC hdbc,
204 SQLHSTMT hstmt,
205 SQLCHAR FAR *szSqlState,
206 SQLINTEGER FAR *pfNativeError,
207 SQLCHAR FAR *szErrorMsg,
208 SQLSMALLINT cbErrorMsgMax,
209 SQLSMALLINT FAR *pcbErrorMsg);
210
211SQLRETURN SQL_API SQLExecDirect(
212 SQLHSTMT hstmt,
213 SQLCHAR FAR *szSqlStr,
214 SQLINTEGER cbSqlStr);
215
216SQLRETURN SQL_API SQLExecute(
217 SQLHSTMT hstmt);
218
219SQLRETURN SQL_API SQLFetch(
220 SQLHSTMT hstmt);
221
222SQLRETURN SQL_API SQLFreeConnect(
223 SQLHDBC hdbc);
224
225SQLRETURN SQL_API SQLFreeEnv(
226 SQLHENV henv);
227
228SQLRETURN SQL_API SQLFreeStmt(
229 SQLHSTMT hstmt,
230 SQLUSMALLINT fOption);
231
232SQLRETURN SQL_API SQLGetCursorName(
233 SQLHSTMT hstmt,
234 SQLCHAR FAR *szCursor,
235 SQLSMALLINT cbCursorMax,
236 SQLSMALLINT FAR *pcbCursor);
237
238SQLRETURN SQL_API SQLNumResultCols(
239 SQLHSTMT hstmt,
240 SQLSMALLINT FAR *pccol);
241
242SQLRETURN SQL_API SQLPrepare(
243 SQLHSTMT hstmt,
244 SQLCHAR FAR *szSqlStr,
245 SQLINTEGER cbSqlStr);
246
247SQLRETURN SQL_API SQLRowCount(
248 SQLHSTMT hstmt,
249 SQLINTEGER FAR *pcrow);
250
251SQLRETURN SQL_API SQLSetCursorName(
252 SQLHSTMT hstmt,
253 SQLCHAR FAR *szCursor,
254 SQLSMALLINT cbCursor);
255
256SQLRETURN SQL_API SQLTransact(
257 SQLHENV henv,
258 SQLHDBC hdbc,
259 SQLUSMALLINT fType);
260
261
262SQLRETURN SQL_API SQLSetParam( /* Use SQLBindParameter */
263 SQLHSTMT hstmt,
264 SQLUSMALLINT ipar,
265 SQLSMALLINT fCType,
266 SQLSMALLINT fSqlType,
267 SQLUINTEGER cbParamDef,
268 SQLSMALLINT ibScale,
269 SQLPOINTER rgbValue,
270 SQLINTEGER FAR *pcbValue);
271
272SQLRETURN SQL_API SQLColumns(
273 SQLHSTMT hstmt,
274 SQLCHAR FAR *szCatalogName,
275 SQLSMALLINT cbCatalogName,
276 SQLCHAR FAR *szSchemaName,
277 SQLSMALLINT cbSchemaName,
278 SQLCHAR FAR *szTableName,
279 SQLSMALLINT cbTableName,
280 SQLCHAR FAR *szColumnName,
281 SQLSMALLINT cbColumnName);
282
283SQLRETURN SQL_API SQLGetConnectOption(
284 SQLHDBC hdbc,
285 SQLUSMALLINT fOption,
286 SQLPOINTER pvParam);
287
288SQLRETURN SQL_API SQLGetData(
289 SQLHSTMT hstmt,
290 SQLUSMALLINT icol,
291 SQLSMALLINT fCType,
292 SQLPOINTER rgbValue,
293 SQLINTEGER cbValueMax,
294 SQLINTEGER FAR *pcbValue);
295
296SQLRETURN SQL_API SQLGetFunctions(
297 SQLHDBC hdbc,
298 SQLUSMALLINT fFunction,
299 SQLUSMALLINT FAR *pfExists);
300
301SQLRETURN SQL_API SQLGetInfo(
302 SQLHDBC hdbc,
303 SQLUSMALLINT fInfoType,
304 SQLPOINTER rgbInfoValue,
305 SQLSMALLINT cbInfoValueMax,
306 SQLSMALLINT FAR *pcbInfoValue);
307
308SQLRETURN SQL_API SQLGetStmtOption(
309 SQLHSTMT hstmt,
310 SQLUSMALLINT fOption,
311 SQLPOINTER pvParam);
312
313SQLRETURN SQL_API SQLGetTypeInfo(
314 SQLHSTMT hstmt,
315 SQLSMALLINT fSqlType);
316
317SQLRETURN SQL_API SQLParamData(
318 SQLHSTMT hstmt,
319 SQLPOINTER FAR *prgbValue);
320
321SQLRETURN SQL_API SQLPutData(
322 SQLHSTMT hstmt,
323 SQLPOINTER rgbValue,
324 SQLINTEGER cbValue);
325
326SQLRETURN SQL_API SQLSetConnectOption(
327 SQLHDBC hdbc,
328 SQLUSMALLINT fOption,
329 SQLUINTEGER vParam);
330
331SQLRETURN SQL_API SQLSetStmtOption(
332 SQLHSTMT hstmt,
333 SQLUSMALLINT fOption,
334 SQLUINTEGER vParam);
335
336SQLRETURN SQL_API SQLSpecialColumns(
337 SQLHSTMT hstmt,
338 SQLUSMALLINT fColType,
339 SQLCHAR FAR *szCatalogName,
340 SQLSMALLINT cbCatalogName,
341 SQLCHAR FAR *szSchemaName,
342 SQLSMALLINT cbSchemaName,
343 SQLCHAR FAR *szTableName,
344 SQLSMALLINT cbTableName,
345 SQLUSMALLINT fScope,
346 SQLUSMALLINT fNullable);
347
348SQLRETURN SQL_API SQLStatistics(
349 SQLHSTMT hstmt,
350 SQLCHAR FAR *szCatalogName,
351 SQLSMALLINT cbCatalogName,
352 SQLCHAR FAR *szSchemaName,
353 SQLSMALLINT cbSchemaName,
354 SQLCHAR FAR *szTableName,
355 SQLSMALLINT cbTableName,
356 SQLUSMALLINT fUnique,
357 SQLUSMALLINT fAccuracy);
358
359SQLRETURN SQL_API SQLTables(
360 SQLHSTMT hstmt,
361 SQLCHAR FAR *szCatalogName,
362 SQLSMALLINT cbCatalogName,
363 SQLCHAR FAR *szSchemaName,
364 SQLSMALLINT cbSchemaName,
365 SQLCHAR FAR *szTableName,
366 SQLSMALLINT cbTableName,
367 SQLCHAR FAR *szTableType,
368 SQLSMALLINT cbTableType);
369
370
371SQLRETURN SQL_API SQLDataSources(
372 SQLHENV henv,
373 SQLUSMALLINT fDirection,
374 SQLCHAR FAR *szDSN,
375 SQLSMALLINT cbDSNMax,
376 SQLSMALLINT FAR *pcbDSN,
377 SQLCHAR FAR *szDescription,
378 SQLSMALLINT cbDescriptionMax,
379 SQLSMALLINT FAR *pcbDescription);
380