f1de5cd008
2009-09-22 21:19:24 +0200 cmc r276365 : #i100000# that's the most plausible explanation, -D$(CVER) is needed by scp2 under windows 2009-09-19 16:10:36 +0200 cmc r276303 : #i100000# revert this for no partically good reason 2009-09-18 14:16:47 +0200 cmc r276279 : remove extra build depend 2009-09-18 08:56:15 +0200 cmc r276265 : #i100000# rerun autoconf 2009-09-17 14:59:38 +0200 cmc r276245 : CWS-TOOLING: rebase CWS cmcfixes62 to trunk@276192 (milestone: DEV300:m59) 2009-09-10 16:40:49 +0200 pl r276041 : fix warning 2009-09-10 11:34:55 +0200 pl r276026 : disable warning from system header 2009-09-09 19:30:45 +0200 pl r276013 : use osl_getAsciiFunctionSymbol instead of strange cast 2009-09-09 19:25:32 +0200 pl r276012 : add some casting hacks to make compile on solaris cc 2009-09-09 19:10:48 +0200 pl r276009 : add missing Configure option for solaris sparce 32bit 2009-09-09 18:37:05 +0200 pl r276008 : merge fix for #i104525# into moved code 2009-09-07 13:28:08 +0200 cmc r275894 : CWS-TOOLING: rebase CWS cmcfixes62 to trunk@275801 (milestone: DEV300:m57) 2009-08-28 12:36:27 +0200 cmc r275523 : CWS-TOOLING: rebase CWS cmcfixes62 to trunk@275331 (milestone: DEV300:m56) 2009-08-26 12:56:18 +0200 cmc r275413 : #i104088# use the right headers in the right place 2009-08-25 17:07:50 +0200 cmc r275372 : #i104500# make openssl build on linux that isn't x86 or x86_64 2009-08-25 13:08:48 +0200 cmc r275347 : #i89237# pretty picswitch up 2009-08-25 10:58:09 +0200 cmc r275342 : #i104489# remove last unused code in starmath 2009-08-25 10:23:33 +0200 cmc r275338 : #i104088# clean up the define post-move 2009-08-24 13:46:57 +0200 cmc r275310 : #i104088# 64bit odbc api changes 2009-08-24 13:42:52 +0200 cmc r275309 : #i89237# unify linux platform mks under a generic parent 2009-08-24 13:19:52 +0200 cmc r275307 : #i104455# remove unused code 2009-08-24 13:10:56 +0200 cmc r275306 : #i104088# 64bit odbc api changes 2009-08-24 10:07:50 +0200 cmc r275293 : #i104306# move recent-used to vcl 2009-08-24 09:32:08 +0200 cmc r275291 : #i104306# move recent-used to vcl 2009-08-23 22:01:07 +0200 cmc r275286 : #i104306# move recently-used to vcl 2009-08-22 15:25:25 +0200 cmc r275285 : #i104088# 64bit odbc api changes 2009-08-21 17:52:40 +0200 cmc r275268 : #i104306# move recently-used to vcl 2009-08-21 14:38:26 +0200 cmc r275257 : #i104408 make these headers ready for c++0x 2009-08-21 14:20:19 +0200 cmc r275251 : #i104406# avoid overlapping strcpy to avoid bustage on recent toolchains 2009-08-21 14:14:25 +0200 cmc r275250 : #i104385# silence 64bit warnings
789 lines
22 KiB
C
789 lines
22 KiB
C
/**************************************************
|
|
* sqlucode.h
|
|
*
|
|
* These should be consistent with the MS version.
|
|
*
|
|
**************************************************/
|
|
#ifndef __SQLUCODE_H
|
|
#define __SQLUCODE_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define SQL_WCHAR (-8)
|
|
#define SQL_WVARCHAR (-9)
|
|
#define SQL_WLONGVARCHAR (-10)
|
|
#define SQL_C_WCHAR SQL_WCHAR
|
|
|
|
#ifdef UNICODE
|
|
#define SQL_C_TCHAR SQL_C_WCHAR
|
|
#else
|
|
#define SQL_C_TCHAR SQL_C_CHAR
|
|
#endif
|
|
|
|
#define SQL_SQLSTATE_SIZEW 10 /* size of SQLSTATE for unicode */
|
|
|
|
/* UNICODE versions */
|
|
|
|
SQLRETURN SQL_API SQLColAttributeW(
|
|
SQLHSTMT hstmt,
|
|
SQLUSMALLINT iCol,
|
|
SQLUSMALLINT iField,
|
|
SQLPOINTER pCharAttr,
|
|
SQLSMALLINT cbCharAttrMax,
|
|
SQLSMALLINT *pcbCharAttr,
|
|
SQLLEN *pNumAttr);
|
|
|
|
SQLRETURN SQL_API SQLColAttributesW(
|
|
SQLHSTMT hstmt,
|
|
SQLUSMALLINT icol,
|
|
SQLUSMALLINT fDescType,
|
|
SQLPOINTER rgbDesc,
|
|
SQLSMALLINT cbDescMax,
|
|
SQLSMALLINT *pcbDesc,
|
|
SQLLEN *pfDesc);
|
|
|
|
SQLRETURN SQL_API SQLConnectW(
|
|
SQLHDBC hdbc,
|
|
SQLWCHAR *szDSN,
|
|
SQLSMALLINT cbDSN,
|
|
SQLWCHAR *szUID,
|
|
SQLSMALLINT cbUID,
|
|
SQLWCHAR *szAuthStr,
|
|
SQLSMALLINT cbAuthStr);
|
|
|
|
|
|
SQLRETURN SQL_API SQLDescribeColW(
|
|
SQLHSTMT hstmt,
|
|
SQLUSMALLINT icol,
|
|
SQLWCHAR *szColName,
|
|
SQLSMALLINT cbColNameMax,
|
|
SQLSMALLINT *pcbColName,
|
|
SQLSMALLINT *pfSqlType,
|
|
SQLULEN *pcbColDef,
|
|
SQLSMALLINT *pibScale,
|
|
SQLSMALLINT *pfNullable);
|
|
|
|
|
|
SQLRETURN SQL_API SQLErrorW(
|
|
SQLHENV henv,
|
|
SQLHDBC hdbc,
|
|
SQLHSTMT hstmt,
|
|
SQLWCHAR *szSqlState,
|
|
SQLINTEGER *pfNativeError,
|
|
SQLWCHAR *szErrorMsg,
|
|
SQLSMALLINT cbErrorMsgMax,
|
|
SQLSMALLINT *pcbErrorMsg);
|
|
|
|
SQLRETURN SQL_API SQLExecDirectW(
|
|
SQLHSTMT hstmt,
|
|
SQLWCHAR *szSqlStr,
|
|
SQLINTEGER cbSqlStr);
|
|
|
|
SQLRETURN SQL_API SQLGetConnectAttrW(
|
|
SQLHDBC hdbc,
|
|
SQLINTEGER fAttribute,
|
|
SQLPOINTER rgbValue,
|
|
SQLINTEGER cbValueMax,
|
|
SQLINTEGER *pcbValue);
|
|
|
|
SQLRETURN SQL_API SQLGetCursorNameW(
|
|
SQLHSTMT hstmt,
|
|
SQLWCHAR *szCursor,
|
|
SQLSMALLINT cbCursorMax,
|
|
SQLSMALLINT *pcbCursor);
|
|
|
|
#if (ODBCVER >= 0x0300)
|
|
SQLRETURN SQL_API SQLSetDescFieldW(SQLHDESC DescriptorHandle,
|
|
SQLSMALLINT RecNumber,
|
|
SQLSMALLINT FieldIdentifier,
|
|
SQLPOINTER Value,
|
|
SQLINTEGER BufferLength);
|
|
|
|
|
|
|
|
SQLRETURN SQL_API SQLGetDescFieldW(
|
|
SQLHDESC hdesc,
|
|
SQLSMALLINT iRecord,
|
|
SQLSMALLINT iField,
|
|
SQLPOINTER rgbValue,
|
|
SQLINTEGER cbValueMax,
|
|
SQLINTEGER *pcbValue);
|
|
|
|
SQLRETURN SQL_API SQLGetDescRecW(
|
|
SQLHDESC hdesc,
|
|
SQLSMALLINT iRecord,
|
|
SQLWCHAR *szName,
|
|
SQLSMALLINT cbNameMax,
|
|
SQLSMALLINT *pcbName,
|
|
SQLSMALLINT *pfType,
|
|
SQLSMALLINT *pfSubType,
|
|
SQLLEN *pLength,
|
|
SQLSMALLINT *pPrecision,
|
|
SQLSMALLINT *pScale,
|
|
SQLSMALLINT *pNullable);
|
|
|
|
SQLRETURN SQL_API SQLGetDiagFieldW(
|
|
SQLSMALLINT fHandleType,
|
|
SQLHANDLE handle,
|
|
SQLSMALLINT iRecord,
|
|
SQLSMALLINT fDiagField,
|
|
SQLPOINTER rgbDiagInfo,
|
|
SQLSMALLINT cbDiagInfoMax,
|
|
SQLSMALLINT *pcbDiagInfo);
|
|
|
|
SQLRETURN SQL_API SQLGetDiagRecW(
|
|
SQLSMALLINT fHandleType,
|
|
SQLHANDLE handle,
|
|
SQLSMALLINT iRecord,
|
|
SQLWCHAR *szSqlState,
|
|
SQLINTEGER *pfNativeError,
|
|
SQLWCHAR *szErrorMsg,
|
|
SQLSMALLINT cbErrorMsgMax,
|
|
SQLSMALLINT *pcbErrorMsg);
|
|
|
|
|
|
#endif
|
|
|
|
|
|
SQLRETURN SQL_API SQLPrepareW(
|
|
SQLHSTMT hstmt,
|
|
SQLWCHAR *szSqlStr,
|
|
SQLINTEGER cbSqlStr);
|
|
|
|
SQLRETURN SQL_API SQLSetConnectAttrW(
|
|
SQLHDBC hdbc,
|
|
SQLINTEGER fAttribute,
|
|
SQLPOINTER rgbValue,
|
|
SQLINTEGER cbValue);
|
|
|
|
SQLRETURN SQL_API SQLSetCursorNameW(
|
|
SQLHSTMT hstmt,
|
|
SQLWCHAR *szCursor,
|
|
SQLSMALLINT cbCursor);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SQLRETURN SQL_API SQLColumnsW(
|
|
SQLHSTMT hstmt,
|
|
SQLWCHAR *szCatalogName,
|
|
SQLSMALLINT cbCatalogName,
|
|
SQLWCHAR *szSchemaName,
|
|
SQLSMALLINT cbSchemaName,
|
|
SQLWCHAR *szTableName,
|
|
SQLSMALLINT cbTableName,
|
|
SQLWCHAR *szColumnName,
|
|
SQLSMALLINT cbColumnName);
|
|
|
|
SQLRETURN SQL_API SQLGetConnectOptionW(
|
|
SQLHDBC hdbc,
|
|
SQLUSMALLINT fOption,
|
|
SQLPOINTER pvParam);
|
|
|
|
|
|
|
|
SQLRETURN SQL_API SQLGetInfoW(
|
|
SQLHDBC hdbc,
|
|
SQLUSMALLINT fInfoType,
|
|
SQLPOINTER rgbInfoValue,
|
|
SQLSMALLINT cbInfoValueMax,
|
|
SQLSMALLINT *pcbInfoValue);
|
|
|
|
SQLRETURN SQL_API SQLGetTypeInfoW(
|
|
SQLHSTMT StatementHandle,
|
|
SQLSMALLINT DataType);
|
|
|
|
|
|
SQLRETURN SQL_API SQLSetConnectOptionW(
|
|
SQLHDBC hdbc,
|
|
SQLUSMALLINT fOption,
|
|
SQLULEN vParam);
|
|
|
|
|
|
SQLRETURN SQL_API SQLSpecialColumnsW(
|
|
SQLHSTMT hstmt,
|
|
SQLUSMALLINT fColType,
|
|
SQLWCHAR *szCatalogName,
|
|
SQLSMALLINT cbCatalogName,
|
|
SQLWCHAR *szSchemaName,
|
|
SQLSMALLINT cbSchemaName,
|
|
SQLWCHAR *szTableName,
|
|
SQLSMALLINT cbTableName,
|
|
SQLUSMALLINT fScope,
|
|
SQLUSMALLINT fNullable);
|
|
|
|
SQLRETURN SQL_API SQLStatisticsW(
|
|
SQLHSTMT hstmt,
|
|
SQLWCHAR *szCatalogName,
|
|
SQLSMALLINT cbCatalogName,
|
|
SQLWCHAR *szSchemaName,
|
|
SQLSMALLINT cbSchemaName,
|
|
SQLWCHAR *szTableName,
|
|
SQLSMALLINT cbTableName,
|
|
SQLUSMALLINT fUnique,
|
|
SQLUSMALLINT fAccuracy);
|
|
|
|
SQLRETURN SQL_API SQLTablesW(
|
|
SQLHSTMT hstmt,
|
|
SQLWCHAR *szCatalogName,
|
|
SQLSMALLINT cbCatalogName,
|
|
SQLWCHAR *szSchemaName,
|
|
SQLSMALLINT cbSchemaName,
|
|
SQLWCHAR *szTableName,
|
|
SQLSMALLINT cbTableName,
|
|
SQLWCHAR *szTableType,
|
|
SQLSMALLINT cbTableType);
|
|
|
|
|
|
|
|
SQLRETURN SQL_API SQLDataSourcesW(
|
|
SQLHENV henv,
|
|
SQLUSMALLINT fDirection,
|
|
SQLWCHAR *szDSN,
|
|
SQLSMALLINT cbDSNMax,
|
|
SQLSMALLINT *pcbDSN,
|
|
SQLWCHAR *szDescription,
|
|
SQLSMALLINT cbDescriptionMax,
|
|
SQLSMALLINT *pcbDescription);
|
|
|
|
|
|
|
|
|
|
SQLRETURN SQL_API SQLDriverConnectW(
|
|
SQLHDBC hdbc,
|
|
SQLHWND hwnd,
|
|
SQLWCHAR *szConnStrIn,
|
|
SQLSMALLINT cbConnStrIn,
|
|
SQLWCHAR *szConnStrOut,
|
|
SQLSMALLINT cbConnStrOutMax,
|
|
SQLSMALLINT *pcbConnStrOut,
|
|
SQLUSMALLINT fDriverCompletion);
|
|
|
|
|
|
SQLRETURN SQL_API SQLBrowseConnectW(
|
|
SQLHDBC hdbc,
|
|
SQLWCHAR *szConnStrIn,
|
|
SQLSMALLINT cbConnStrIn,
|
|
SQLWCHAR *szConnStrOut,
|
|
SQLSMALLINT cbConnStrOutMax,
|
|
SQLSMALLINT *pcbConnStrOut);
|
|
|
|
SQLRETURN SQL_API SQLColumnPrivilegesW(
|
|
SQLHSTMT hstmt,
|
|
SQLWCHAR *szCatalogName,
|
|
SQLSMALLINT cbCatalogName,
|
|
SQLWCHAR *szSchemaName,
|
|
SQLSMALLINT cbSchemaName,
|
|
SQLWCHAR *szTableName,
|
|
SQLSMALLINT cbTableName,
|
|
SQLWCHAR *szColumnName,
|
|
SQLSMALLINT cbColumnName);
|
|
|
|
SQLRETURN SQL_API SQLGetStmtAttrW(
|
|
SQLHSTMT hstmt,
|
|
SQLINTEGER fAttribute,
|
|
SQLPOINTER rgbValue,
|
|
SQLINTEGER cbValueMax,
|
|
SQLINTEGER *pcbValue);
|
|
|
|
SQLRETURN SQL_API SQLSetStmtAttrW(
|
|
SQLHSTMT hstmt,
|
|
SQLINTEGER fAttribute,
|
|
SQLPOINTER rgbValue,
|
|
SQLINTEGER cbValueMax);
|
|
|
|
SQLRETURN SQL_API SQLForeignKeysW(
|
|
SQLHSTMT hstmt,
|
|
SQLWCHAR *szPkCatalogName,
|
|
SQLSMALLINT cbPkCatalogName,
|
|
SQLWCHAR *szPkSchemaName,
|
|
SQLSMALLINT cbPkSchemaName,
|
|
SQLWCHAR *szPkTableName,
|
|
SQLSMALLINT cbPkTableName,
|
|
SQLWCHAR *szFkCatalogName,
|
|
SQLSMALLINT cbFkCatalogName,
|
|
SQLWCHAR *szFkSchemaName,
|
|
SQLSMALLINT cbFkSchemaName,
|
|
SQLWCHAR *szFkTableName,
|
|
SQLSMALLINT cbFkTableName);
|
|
|
|
|
|
SQLRETURN SQL_API SQLNativeSqlW(
|
|
SQLHDBC hdbc,
|
|
SQLWCHAR *szSqlStrIn,
|
|
SQLINTEGER cbSqlStrIn,
|
|
SQLWCHAR *szSqlStr,
|
|
SQLINTEGER cbSqlStrMax,
|
|
SQLINTEGER *pcbSqlStr);
|
|
|
|
|
|
SQLRETURN SQL_API SQLPrimaryKeysW(
|
|
SQLHSTMT hstmt,
|
|
SQLWCHAR *szCatalogName,
|
|
SQLSMALLINT cbCatalogName,
|
|
SQLWCHAR *szSchemaName,
|
|
SQLSMALLINT cbSchemaName,
|
|
SQLWCHAR *szTableName,
|
|
SQLSMALLINT cbTableName);
|
|
|
|
SQLRETURN SQL_API SQLProcedureColumnsW(
|
|
SQLHSTMT hstmt,
|
|
SQLWCHAR *szCatalogName,
|
|
SQLSMALLINT cbCatalogName,
|
|
SQLWCHAR *szSchemaName,
|
|
SQLSMALLINT cbSchemaName,
|
|
SQLWCHAR *szProcName,
|
|
SQLSMALLINT cbProcName,
|
|
SQLWCHAR *szColumnName,
|
|
SQLSMALLINT cbColumnName);
|
|
|
|
SQLRETURN SQL_API SQLProceduresW(
|
|
SQLHSTMT hstmt,
|
|
SQLWCHAR *szCatalogName,
|
|
SQLSMALLINT cbCatalogName,
|
|
SQLWCHAR *szSchemaName,
|
|
SQLSMALLINT cbSchemaName,
|
|
SQLWCHAR *szProcName,
|
|
SQLSMALLINT cbProcName);
|
|
|
|
|
|
SQLRETURN SQL_API SQLTablePrivilegesW(
|
|
SQLHSTMT hstmt,
|
|
SQLWCHAR *szCatalogName,
|
|
SQLSMALLINT cbCatalogName,
|
|
SQLWCHAR *szSchemaName,
|
|
SQLSMALLINT cbSchemaName,
|
|
SQLWCHAR *szTableName,
|
|
SQLSMALLINT cbTableName);
|
|
|
|
SQLRETURN SQL_API SQLDriversW(
|
|
SQLHENV henv,
|
|
SQLUSMALLINT fDirection,
|
|
SQLWCHAR *szDriverDesc,
|
|
SQLSMALLINT cbDriverDescMax,
|
|
SQLSMALLINT *pcbDriverDesc,
|
|
SQLWCHAR *szDriverAttributes,
|
|
SQLSMALLINT cbDrvrAttrMax,
|
|
SQLSMALLINT *pcbDrvrAttr);
|
|
|
|
|
|
/* ANSI versions */
|
|
|
|
SQLRETURN SQL_API SQLColAttributeA(
|
|
SQLHSTMT hstmt,
|
|
SQLSMALLINT iCol,
|
|
SQLSMALLINT iField,
|
|
SQLPOINTER pCharAttr,
|
|
SQLSMALLINT cbCharAttrMax,
|
|
SQLSMALLINT *pcbCharAttr,
|
|
SQLLEN *pNumAttr);
|
|
|
|
SQLRETURN SQL_API SQLColAttributesA(
|
|
SQLHSTMT hstmt,
|
|
SQLUSMALLINT icol,
|
|
SQLUSMALLINT fDescType,
|
|
SQLPOINTER rgbDesc,
|
|
SQLSMALLINT cbDescMax,
|
|
SQLSMALLINT *pcbDesc,
|
|
SQLLEN *pfDesc);
|
|
|
|
SQLRETURN SQL_API SQLConnectA(
|
|
SQLHDBC hdbc,
|
|
SQLCHAR *szDSN,
|
|
SQLSMALLINT cbDSN,
|
|
SQLCHAR *szUID,
|
|
SQLSMALLINT cbUID,
|
|
SQLCHAR *szAuthStr,
|
|
SQLSMALLINT cbAuthStr);
|
|
|
|
|
|
SQLRETURN SQL_API SQLDescribeColA(
|
|
SQLHSTMT hstmt,
|
|
SQLUSMALLINT icol,
|
|
SQLCHAR *szColName,
|
|
SQLSMALLINT cbColNameMax,
|
|
SQLSMALLINT *pcbColName,
|
|
SQLSMALLINT *pfSqlType,
|
|
SQLULEN *pcbColDef,
|
|
SQLSMALLINT *pibScale,
|
|
SQLSMALLINT *pfNullable);
|
|
|
|
|
|
SQLRETURN SQL_API SQLErrorA(
|
|
SQLHENV henv,
|
|
SQLHDBC hdbc,
|
|
SQLHSTMT hstmt,
|
|
SQLCHAR *szSqlState,
|
|
SQLINTEGER *pfNativeError,
|
|
SQLCHAR *szErrorMsg,
|
|
SQLSMALLINT cbErrorMsgMax,
|
|
SQLSMALLINT *pcbErrorMsg);
|
|
|
|
SQLRETURN SQL_API SQLExecDirectA(
|
|
SQLHSTMT hstmt,
|
|
SQLCHAR *szSqlStr,
|
|
SQLINTEGER cbSqlStr);
|
|
|
|
SQLRETURN SQL_API SQLGetConnectAttrA(
|
|
SQLHDBC hdbc,
|
|
SQLINTEGER fAttribute,
|
|
SQLPOINTER rgbValue,
|
|
SQLINTEGER cbValueMax,
|
|
SQLINTEGER *pcbValue);
|
|
|
|
SQLRETURN SQL_API SQLGetCursorNameA(
|
|
SQLHSTMT hstmt,
|
|
SQLCHAR *szCursor,
|
|
SQLSMALLINT cbCursorMax,
|
|
SQLSMALLINT *pcbCursor);
|
|
|
|
#if (ODBCVER >= 0x0300)
|
|
SQLRETURN SQL_API SQLGetDescFieldA(
|
|
SQLHDESC hdesc,
|
|
SQLSMALLINT iRecord,
|
|
SQLSMALLINT iField,
|
|
SQLPOINTER rgbValue,
|
|
SQLINTEGER cbValueMax,
|
|
SQLINTEGER *pcbValue);
|
|
|
|
SQLRETURN SQL_API SQLGetDescRecA(
|
|
SQLHDESC hdesc,
|
|
SQLSMALLINT iRecord,
|
|
SQLCHAR *szName,
|
|
SQLSMALLINT cbNameMax,
|
|
SQLSMALLINT *pcbName,
|
|
SQLSMALLINT *pfType,
|
|
SQLSMALLINT *pfSubType,
|
|
SQLLEN *pLength,
|
|
SQLSMALLINT *pPrecision,
|
|
SQLSMALLINT *pScale,
|
|
SQLSMALLINT *pNullable);
|
|
|
|
SQLRETURN SQL_API SQLGetDiagFieldA(
|
|
SQLSMALLINT fHandleType,
|
|
SQLHANDLE handle,
|
|
SQLSMALLINT iRecord,
|
|
SQLSMALLINT fDiagField,
|
|
SQLPOINTER rgbDiagInfo,
|
|
SQLSMALLINT cbDiagInfoMax,
|
|
SQLSMALLINT *pcbDiagInfo);
|
|
|
|
SQLRETURN SQL_API SQLGetDiagRecA(
|
|
SQLSMALLINT fHandleType,
|
|
SQLHANDLE handle,
|
|
SQLSMALLINT iRecord,
|
|
SQLCHAR *szSqlState,
|
|
SQLINTEGER *pfNativeError,
|
|
SQLCHAR *szErrorMsg,
|
|
SQLSMALLINT cbErrorMsgMax,
|
|
SQLSMALLINT *pcbErrorMsg);
|
|
|
|
|
|
SQLRETURN SQL_API SQLGetStmtAttrA(
|
|
SQLHSTMT hstmt,
|
|
SQLINTEGER fAttribute,
|
|
SQLPOINTER rgbValue,
|
|
SQLINTEGER cbValueMax,
|
|
SQLINTEGER *pcbValue);
|
|
|
|
#endif
|
|
|
|
SQLRETURN SQL_API SQLGetTypeInfoA(
|
|
SQLHSTMT StatementHandle,
|
|
SQLSMALLINT DataTyoe);
|
|
|
|
SQLRETURN SQL_API SQLPrepareA(
|
|
SQLHSTMT hstmt,
|
|
SQLCHAR *szSqlStr,
|
|
SQLINTEGER cbSqlStr);
|
|
|
|
SQLRETURN SQL_API SQLSetConnectAttrA(
|
|
SQLHDBC hdbc,
|
|
SQLINTEGER fAttribute,
|
|
SQLPOINTER rgbValue,
|
|
SQLINTEGER cbValue);
|
|
|
|
SQLRETURN SQL_API SQLSetCursorNameA(
|
|
SQLHSTMT hstmt,
|
|
SQLCHAR *szCursor,
|
|
SQLSMALLINT cbCursor);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SQLRETURN SQL_API SQLColumnsA(
|
|
SQLHSTMT hstmt,
|
|
SQLCHAR *szCatalogName,
|
|
SQLSMALLINT cbCatalogName,
|
|
SQLCHAR *szSchemaName,
|
|
SQLSMALLINT cbSchemaName,
|
|
SQLCHAR *szTableName,
|
|
SQLSMALLINT cbTableName,
|
|
SQLCHAR *szColumnName,
|
|
SQLSMALLINT cbColumnName);
|
|
|
|
SQLRETURN SQL_API SQLGetConnectOptionA(
|
|
SQLHDBC hdbc,
|
|
SQLUSMALLINT fOption,
|
|
SQLPOINTER pvParam);
|
|
|
|
|
|
|
|
SQLRETURN SQL_API SQLGetInfoA(
|
|
SQLHDBC hdbc,
|
|
SQLUSMALLINT fInfoType,
|
|
SQLPOINTER rgbInfoValue,
|
|
SQLSMALLINT cbInfoValueMax,
|
|
SQLSMALLINT* pcbInfoValue);
|
|
|
|
SQLRETURN SQL_API SQLGetStmtOptionA(
|
|
SQLHSTMT hstmt,
|
|
SQLUSMALLINT fOption,
|
|
SQLPOINTER pvParam);
|
|
|
|
SQLRETURN SQL_API SQLSetConnectOptionA(
|
|
SQLHDBC hdbc,
|
|
SQLUSMALLINT fOption,
|
|
SQLULEN vParam);
|
|
|
|
SQLRETURN SQL_API SQLSetStmtOptionA(
|
|
SQLHSTMT hstmt,
|
|
SQLUSMALLINT fOption,
|
|
SQLULEN vParam);
|
|
|
|
SQLRETURN SQL_API SQLSpecialColumnsA(
|
|
SQLHSTMT hstmt,
|
|
SQLUSMALLINT fColType,
|
|
SQLCHAR *szCatalogName,
|
|
SQLSMALLINT cbCatalogName,
|
|
SQLCHAR *szSchemaName,
|
|
SQLSMALLINT cbSchemaName,
|
|
SQLCHAR *szTableName,
|
|
SQLSMALLINT cbTableName,
|
|
SQLUSMALLINT fScope,
|
|
SQLUSMALLINT fNullable);
|
|
|
|
SQLRETURN SQL_API SQLStatisticsA(
|
|
SQLHSTMT hstmt,
|
|
|
|
SQLCHAR *szCatalogName,
|
|
SQLSMALLINT cbCatalogName,
|
|
SQLCHAR *szSchemaName,
|
|
SQLSMALLINT cbSchemaName,
|
|
SQLCHAR *szTableName,
|
|
SQLSMALLINT cbTableName,
|
|
SQLUSMALLINT fUnique,
|
|
SQLUSMALLINT fAccuracy);
|
|
|
|
SQLRETURN SQL_API SQLTablesA(
|
|
SQLHSTMT hstmt,
|
|
|
|
SQLCHAR *szCatalogName,
|
|
SQLSMALLINT cbCatalogName,
|
|
SQLCHAR *szSchemaName,
|
|
SQLSMALLINT cbSchemaName,
|
|
SQLCHAR *szTableName,
|
|
SQLSMALLINT cbTableName,
|
|
SQLCHAR *szTableType,
|
|
|
|
SQLSMALLINT cbTableType);
|
|
|
|
|
|
|
|
SQLRETURN SQL_API SQLDataSourcesA(
|
|
SQLHENV henv,
|
|
SQLUSMALLINT fDirection,
|
|
SQLCHAR *szDSN,
|
|
SQLSMALLINT cbDSNMax,
|
|
SQLSMALLINT *pcbDSN,
|
|
SQLCHAR *szDescription,
|
|
SQLSMALLINT cbDescriptionMax,
|
|
SQLSMALLINT *pcbDescription);
|
|
|
|
|
|
|
|
|
|
SQLRETURN SQL_API SQLDriverConnectA(
|
|
SQLHDBC hdbc,
|
|
SQLHWND hwnd,
|
|
SQLCHAR *szConnStrIn,
|
|
SQLSMALLINT cbConnStrIn,
|
|
SQLCHAR *szConnStrOut,
|
|
SQLSMALLINT cbConnStrOutMax,
|
|
SQLSMALLINT *pcbConnStrOut,
|
|
SQLUSMALLINT fDriverCompletion);
|
|
|
|
|
|
SQLRETURN SQL_API SQLBrowseConnectA(
|
|
SQLHDBC hdbc,
|
|
SQLCHAR *szConnStrIn,
|
|
SQLSMALLINT cbConnStrIn,
|
|
SQLCHAR *szConnStrOut,
|
|
SQLSMALLINT cbConnStrOutMax,
|
|
SQLSMALLINT *pcbConnStrOut);
|
|
|
|
SQLRETURN SQL_API SQLColumnPrivilegesA(
|
|
SQLHSTMT hstmt,
|
|
SQLCHAR *szCatalogName,
|
|
SQLSMALLINT cbCatalogName,
|
|
SQLCHAR *szSchemaName,
|
|
SQLSMALLINT cbSchemaName,
|
|
SQLCHAR *szTableName,
|
|
SQLSMALLINT cbTableName,
|
|
SQLCHAR *szColumnName,
|
|
SQLSMALLINT cbColumnName);
|
|
|
|
SQLRETURN SQL_API SQLDescribeParamA(
|
|
SQLHSTMT hstmt,
|
|
SQLUSMALLINT ipar,
|
|
SQLSMALLINT *pfSqlType,
|
|
SQLUINTEGER *pcbParamDef,
|
|
SQLSMALLINT *pibScale,
|
|
SQLSMALLINT *pfNullable);
|
|
|
|
|
|
SQLRETURN SQL_API SQLForeignKeysA(
|
|
SQLHSTMT hstmt,
|
|
SQLCHAR *szPkCatalogName,
|
|
SQLSMALLINT cbPkCatalogName,
|
|
SQLCHAR *szPkSchemaName,
|
|
SQLSMALLINT cbPkSchemaName,
|
|
SQLCHAR *szPkTableName,
|
|
SQLSMALLINT cbPkTableName,
|
|
SQLCHAR *szFkCatalogName,
|
|
SQLSMALLINT cbFkCatalogName,
|
|
SQLCHAR *szFkSchemaName,
|
|
SQLSMALLINT cbFkSchemaName,
|
|
SQLCHAR *szFkTableName,
|
|
SQLSMALLINT cbFkTableName);
|
|
|
|
|
|
SQLRETURN SQL_API SQLNativeSqlA(
|
|
SQLHDBC hdbc,
|
|
SQLCHAR *szSqlStrIn,
|
|
SQLINTEGER cbSqlStrIn,
|
|
SQLCHAR *szSqlStr,
|
|
SQLINTEGER cbSqlStrMax,
|
|
SQLINTEGER *pcbSqlStr);
|
|
|
|
|
|
SQLRETURN SQL_API SQLPrimaryKeysA(
|
|
SQLHSTMT hstmt,
|
|
SQLCHAR *szCatalogName,
|
|
SQLSMALLINT cbCatalogName,
|
|
SQLCHAR *szSchemaName,
|
|
SQLSMALLINT cbSchemaName,
|
|
SQLCHAR *szTableName,
|
|
SQLSMALLINT cbTableName);
|
|
|
|
SQLRETURN SQL_API SQLProcedureColumnsA(
|
|
SQLHSTMT hstmt,
|
|
SQLCHAR *szCatalogName,
|
|
SQLSMALLINT cbCatalogName,
|
|
SQLCHAR *szSchemaName,
|
|
SQLSMALLINT cbSchemaName,
|
|
SQLCHAR *szProcName,
|
|
SQLSMALLINT cbProcName,
|
|
SQLCHAR *szColumnName,
|
|
SQLSMALLINT cbColumnName);
|
|
|
|
SQLRETURN SQL_API SQLProceduresA(
|
|
SQLHSTMT hstmt,
|
|
SQLCHAR *szCatalogName,
|
|
SQLSMALLINT cbCatalogName,
|
|
SQLCHAR *szSchemaName,
|
|
SQLSMALLINT cbSchemaName,
|
|
SQLCHAR *szProcName,
|
|
SQLSMALLINT cbProcName);
|
|
|
|
|
|
SQLRETURN SQL_API SQLTablePrivilegesA(
|
|
SQLHSTMT hstmt,
|
|
SQLCHAR *szCatalogName,
|
|
SQLSMALLINT cbCatalogName,
|
|
SQLCHAR *szSchemaName,
|
|
SQLSMALLINT cbSchemaName,
|
|
SQLCHAR *szTableName,
|
|
SQLSMALLINT cbTableName);
|
|
|
|
SQLRETURN SQL_API SQLDriversA(
|
|
SQLHENV henv,
|
|
SQLUSMALLINT fDirection,
|
|
SQLCHAR *szDriverDesc,
|
|
SQLSMALLINT cbDriverDescMax,
|
|
SQLSMALLINT *pcbDriverDesc,
|
|
SQLCHAR *szDriverAttributes,
|
|
SQLSMALLINT cbDrvrAttrMax,
|
|
SQLSMALLINT *pcbDrvrAttr);
|
|
|
|
|
|
|
|
|
|
|
|
/*---------------------------------------------*/
|
|
/* Mapping macros for Unicode */
|
|
/*---------------------------------------------*/
|
|
|
|
#ifndef SQL_NOUNICODEMAP /* define this to disable the mapping */
|
|
#ifdef UNICODE
|
|
|
|
#define SQLColAttribute SQLColAttributeW
|
|
#define SQLColAttributes SQLColAttributesW
|
|
#define SQLConnect SQLConnectW
|
|
#define SQLDescribeCol SQLDescribeColW
|
|
#define SQLError SQLErrorW
|
|
#define SQLExecDirect SQLExecDirectW
|
|
#define SQLGetConnectAttr SQLGetConnectAttrW
|
|
#define SQLGetCursorName SQLGetCursorNameW
|
|
#define SQLGetDescField SQLGetDescFieldW
|
|
#define SQLGetDescRec SQLGetDescRecW
|
|
#define SQLGetDiagField SQLGetDiagFieldW
|
|
#define SQLGetDiagRec SQLGetDiagRecW
|
|
#define SQLPrepare SQLPrepareW
|
|
#define SQLSetConnectAttr SQLSetConnectAttrW
|
|
#define SQLSetCursorName SQLSetCursorNameW
|
|
#define SQLSetDescField SQLSetDescFieldW
|
|
#define SQLSetStmtAttr SQLSetStmtAttrW
|
|
#define SQLGetStmtAttr SQLGetStmtAttrW
|
|
#define SQLColumns SQLColumnsW
|
|
#define SQLGetConnectOption SQLGetConnectOptionW
|
|
#define SQLGetInfo SQLGetInfoW
|
|
#define SQLGetTypeInfo SQLGetTypeInfoW
|
|
#define SQLSetConnectOption SQLSetConnectOptionW
|
|
#define SQLSpecialColumns SQLSpecialColumnsW
|
|
#define SQLStatistics SQLStatisticsW
|
|
#define SQLTables SQLTablesW
|
|
#define SQLDataSources SQLDataSourcesW
|
|
#define SQLDriverConnect SQLDriverConnectW
|
|
#define SQLBrowseConnect SQLBrowseConnectW
|
|
#define SQLColumnPrivileges SQLColumnPrivilegesW
|
|
#define SQLForeignKeys SQLForeignKeysW
|
|
#define SQLNativeSql SQLNativeSqlW
|
|
#define SQLPrimaryKeys SQLPrimaryKeysW
|
|
#define SQLProcedureColumns SQLProcedureColumnsW
|
|
#define SQLProcedures SQLProceduresW
|
|
#define SQLTablePrivileges SQLTablePrivilegesW
|
|
#define SQLDrivers SQLDriversW
|
|
|
|
#endif /* UNICODE */
|
|
#endif /* SQL_NOUNICODEMAP */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#ifndef __SQLEXT_H
|
|
#include <odbx/sqlext.h>
|
|
|
|
#endif
|
|
|
|
|
|
#endif
|