1 #define SQLRETURN RETCODE
2 SQLRETURN SQL_API
SQLDriverConnect(
5 SQLCHAR FAR
*szConnStrIn
,
6 SQLSMALLINT cbConnStrIn
,
7 SQLCHAR FAR
*szConnStrOut
,
8 SQLSMALLINT cbConnStrOutMax
,
9 SQLSMALLINT FAR
*pcbConnStrOut
,
10 SQLUSMALLINT fDriverCompletion
);
12 SQLRETURN SQL_API
SQLBrowseConnect(
14 SQLCHAR FAR
*szConnStrIn
,
15 SQLSMALLINT cbConnStrIn
,
16 SQLCHAR FAR
*szConnStrOut
,
17 SQLSMALLINT cbConnStrOutMax
,
18 SQLSMALLINT FAR
*pcbConnStrOut
);
20 SQLRETURN SQL_API
SQLColumnPrivileges(
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
);
31 SQLRETURN SQL_API
SQLDescribeParam(
34 SQLSMALLINT FAR
*pfSqlType
,
35 SQLUINTEGER FAR
*pcbParamDef
,
36 SQLSMALLINT FAR
*pibScale
,
37 SQLSMALLINT FAR
*pfNullable
);
39 SQLRETURN SQL_API
SQLExtendedFetch(
41 SQLUSMALLINT fFetchType
,
43 SQLUINTEGER FAR
*pcrow
,
44 SQLUSMALLINT FAR
*rgfRowStatus
);
46 SQLRETURN SQL_API
SQLForeignKeys(
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
);
61 SQLRETURN SQL_API
SQLMoreResults(
64 SQLRETURN SQL_API
SQLNativeSql(
66 SQLCHAR FAR
*szSqlStrIn
,
67 SQLINTEGER cbSqlStrIn
,
68 SQLCHAR FAR
*szSqlStr
,
69 SQLINTEGER cbSqlStrMax
,
70 SQLINTEGER FAR
*pcbSqlStr
);
72 SQLRETURN SQL_API
SQLNumParams(
74 SQLSMALLINT FAR
*pcpar
);
76 SQLRETURN SQL_API
SQLParamOptions(
79 SQLUINTEGER FAR
*pirow
);
81 SQLRETURN SQL_API
SQLPrimaryKeys(
83 SQLCHAR FAR
*szCatalogName
,
84 SQLSMALLINT cbCatalogName
,
85 SQLCHAR FAR
*szSchemaName
,
86 SQLSMALLINT cbSchemaName
,
87 SQLCHAR FAR
*szTableName
,
88 SQLSMALLINT cbTableName
);
90 SQLRETURN SQL_API
SQLProcedureColumns(
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
);
101 SQLRETURN SQL_API
SQLProcedures(
103 SQLCHAR FAR
*szCatalogName
,
104 SQLSMALLINT cbCatalogName
,
105 SQLCHAR FAR
*szSchemaName
,
106 SQLSMALLINT cbSchemaName
,
107 SQLCHAR FAR
*szProcName
,
108 SQLSMALLINT cbProcName
);
110 SQLRETURN SQL_API
SQLSetPos(
113 SQLUSMALLINT fOption
,
116 SQLRETURN SQL_API
SQLTablePrivileges(
118 SQLCHAR FAR
*szCatalogName
,
119 SQLSMALLINT cbCatalogName
,
120 SQLCHAR FAR
*szSchemaName
,
121 SQLSMALLINT cbSchemaName
,
122 SQLCHAR FAR
*szTableName
,
123 SQLSMALLINT cbTableName
);
125 SQLRETURN SQL_API
SQLDrivers(
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
);
135 SQLRETURN SQL_API
SQLBindParameter(
138 SQLSMALLINT fParamType
,
140 SQLSMALLINT fSqlType
,
141 SQLUINTEGER cbColDef
,
144 SQLINTEGER cbValueMax
,
145 SQLINTEGER FAR
*pcbValue
);
147 SQLRETURN SQL_API
SQLAllocConnect(
151 SQLRETURN SQL_API
SQLAllocEnv(
154 SQLRETURN SQL_API
SQLAllocStmt(
156 SQLHSTMT FAR
*phstmt
);
158 SQLRETURN SQL_API
SQLBindCol(
163 SQLINTEGER cbValueMax
,
164 SQLINTEGER FAR
*pcbValue
);
166 SQLRETURN SQL_API
SQLCancel(
169 SQLRETURN SQL_API
SQLColAttributes(
172 SQLUSMALLINT fDescType
,
174 SQLSMALLINT cbDescMax
,
175 SQLSMALLINT FAR
*pcbDesc
,
176 SQLINTEGER FAR
*pfDesc
);
178 SQLRETURN SQL_API
SQLConnect(
184 SQLCHAR FAR
*szAuthStr
,
185 SQLSMALLINT cbAuthStr
);
187 SQLRETURN SQL_API
SQLDescribeCol(
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
);
198 SQLRETURN SQL_API
SQLDisconnect(
201 SQLRETURN SQL_API
SQLError(
205 SQLCHAR FAR
*szSqlState
,
206 SQLINTEGER FAR
*pfNativeError
,
207 SQLCHAR FAR
*szErrorMsg
,
208 SQLSMALLINT cbErrorMsgMax
,
209 SQLSMALLINT FAR
*pcbErrorMsg
);
211 SQLRETURN SQL_API
SQLExecDirect(
213 SQLCHAR FAR
*szSqlStr
,
214 SQLINTEGER cbSqlStr
);
216 SQLRETURN SQL_API
SQLExecute(
219 SQLRETURN SQL_API
SQLFetch(
222 SQLRETURN SQL_API
SQLFreeConnect(
225 SQLRETURN SQL_API
SQLFreeEnv(
228 SQLRETURN SQL_API
SQLFreeStmt(
230 SQLUSMALLINT fOption
);
232 SQLRETURN SQL_API
SQLGetCursorName(
234 SQLCHAR FAR
*szCursor
,
235 SQLSMALLINT cbCursorMax
,
236 SQLSMALLINT FAR
*pcbCursor
);
238 SQLRETURN SQL_API
SQLNumResultCols(
240 SQLSMALLINT FAR
*pccol
);
242 SQLRETURN SQL_API
SQLPrepare(
244 SQLCHAR FAR
*szSqlStr
,
245 SQLINTEGER cbSqlStr
);
247 SQLRETURN SQL_API
SQLRowCount(
249 SQLINTEGER FAR
*pcrow
);
251 SQLRETURN SQL_API
SQLSetCursorName(
253 SQLCHAR FAR
*szCursor
,
254 SQLSMALLINT cbCursor
);
256 SQLRETURN SQL_API
SQLTransact(
262 SQLRETURN SQL_API
SQLSetParam( /* Use SQLBindParameter */
266 SQLSMALLINT fSqlType
,
267 SQLUINTEGER cbParamDef
,
270 SQLINTEGER FAR
*pcbValue
);
272 SQLRETURN SQL_API
SQLColumns(
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
);
283 SQLRETURN SQL_API
SQLGetConnectOption(
285 SQLUSMALLINT fOption
,
288 SQLRETURN SQL_API
SQLGetData(
293 SQLINTEGER cbValueMax
,
294 SQLINTEGER FAR
*pcbValue
);
296 SQLRETURN SQL_API
SQLGetFunctions(
298 SQLUSMALLINT fFunction
,
299 SQLUSMALLINT FAR
*pfExists
);
301 SQLRETURN SQL_API
SQLGetInfo(
303 SQLUSMALLINT fInfoType
,
304 SQLPOINTER rgbInfoValue
,
305 SQLSMALLINT cbInfoValueMax
,
306 SQLSMALLINT FAR
*pcbInfoValue
);
308 SQLRETURN SQL_API
SQLGetStmtOption(
310 SQLUSMALLINT fOption
,
313 SQLRETURN SQL_API
SQLGetTypeInfo(
315 SQLSMALLINT fSqlType
);
317 SQLRETURN SQL_API
SQLParamData(
319 SQLPOINTER FAR
*prgbValue
);
321 SQLRETURN SQL_API
SQLPutData(
326 SQLRETURN SQL_API
SQLSetConnectOption(
328 SQLUSMALLINT fOption
,
331 SQLRETURN SQL_API
SQLSetStmtOption(
333 SQLUSMALLINT fOption
,
336 SQLRETURN SQL_API
SQLSpecialColumns(
338 SQLUSMALLINT fColType
,
339 SQLCHAR FAR
*szCatalogName
,
340 SQLSMALLINT cbCatalogName
,
341 SQLCHAR FAR
*szSchemaName
,
342 SQLSMALLINT cbSchemaName
,
343 SQLCHAR FAR
*szTableName
,
344 SQLSMALLINT cbTableName
,
346 SQLUSMALLINT fNullable
);
348 SQLRETURN SQL_API
SQLStatistics(
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
);
359 SQLRETURN SQL_API
SQLTables(
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
);
371 SQLRETURN SQL_API
SQLDataSources(
373 SQLUSMALLINT fDirection
,
375 SQLSMALLINT cbDSNMax
,
376 SQLSMALLINT FAR
*pcbDSN
,
377 SQLCHAR FAR
*szDescription
,
378 SQLSMALLINT cbDescriptionMax
,
379 SQLSMALLINT FAR
*pcbDescription
);