include/sql.h File Reference

#include "sqltypes.h"

Include dependency graph for sql.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ODBCVER   0x0351
#define SQL_NULL_DATA   (-1)
#define SQL_DATA_AT_EXEC   (-2)
#define SQL_SUCCESS   0
#define SQL_SUCCESS_WITH_INFO   1
#define SQL_NO_DATA   100
#define SQL_ERROR   (-1)
#define SQL_INVALID_HANDLE   (-2)
#define SQL_STILL_EXECUTING   2
#define SQL_NEED_DATA   99
#define SQL_SUCCEEDED(rc)   (((rc)&(~1))==0)
#define SQL_NTS   (-3)
#define SQL_NTSL   (-3L)
#define SQL_MAX_MESSAGE_LENGTH   512
#define SQL_DATE_LEN   10
#define SQL_TIME_LEN   8
#define SQL_TIMESTAMP_LEN   19
#define SQL_HANDLE_ENV   1
#define SQL_HANDLE_DBC   2
#define SQL_HANDLE_STMT   3
#define SQL_HANDLE_DESC   4
#define SQL_ATTR_OUTPUT_NTS   10001
#define SQL_ATTR_AUTO_IPD   10001
#define SQL_ATTR_METADATA_ID   10014
#define SQL_ATTR_APP_ROW_DESC   10010
#define SQL_ATTR_APP_PARAM_DESC   10011
#define SQL_ATTR_IMP_ROW_DESC   10012
#define SQL_ATTR_IMP_PARAM_DESC   10013
#define SQL_ATTR_CURSOR_SCROLLABLE   (-1)
#define SQL_ATTR_CURSOR_SENSITIVITY   (-2)
#define SQL_NONSCROLLABLE   0
#define SQL_SCROLLABLE   1
#define SQL_DESC_COUNT   1001
#define SQL_DESC_TYPE   1002
#define SQL_DESC_LENGTH   1003
#define SQL_DESC_OCTET_LENGTH_PTR   1004
#define SQL_DESC_PRECISION   1005
#define SQL_DESC_SCALE   1006
#define SQL_DESC_DATETIME_INTERVAL_CODE   1007
#define SQL_DESC_NULLABLE   1008
#define SQL_DESC_INDICATOR_PTR   1009
#define SQL_DESC_DATA_PTR   1010
#define SQL_DESC_NAME   1011
#define SQL_DESC_UNNAMED   1012
#define SQL_DESC_OCTET_LENGTH   1013
#define SQL_DESC_ALLOC_TYPE   1099
#define SQL_DIAG_RETURNCODE   1
#define SQL_DIAG_NUMBER   2
#define SQL_DIAG_ROW_COUNT   3
#define SQL_DIAG_SQLSTATE   4
#define SQL_DIAG_NATIVE   5
#define SQL_DIAG_MESSAGE_TEXT   6
#define SQL_DIAG_DYNAMIC_FUNCTION   7
#define SQL_DIAG_CLASS_ORIGIN   8
#define SQL_DIAG_SUBCLASS_ORIGIN   9
#define SQL_DIAG_CONNECTION_NAME   10
#define SQL_DIAG_SERVER_NAME   11
#define SQL_DIAG_DYNAMIC_FUNCTION_CODE   12
#define SQL_DIAG_ALTER_DOMAIN   3
#define SQL_DIAG_ALTER_TABLE   4
#define SQL_DIAG_CALL   7
#define SQL_DIAG_CREATE_ASSERTION   6
#define SQL_DIAG_CREATE_CHARACTER_SET   8
#define SQL_DIAG_CREATE_COLLATION   10
#define SQL_DIAG_CREATE_DOMAIN   23
#define SQL_DIAG_CREATE_INDEX   (-1)
#define SQL_DIAG_CREATE_SCHEMA   64
#define SQL_DIAG_CREATE_TABLE   77
#define SQL_DIAG_CREATE_TRANSLATION   79
#define SQL_DIAG_CREATE_VIEW   84
#define SQL_DIAG_DELETE_WHERE   19
#define SQL_DIAG_DROP_ASSERTION   24
#define SQL_DIAG_DROP_CHARACTER_SET   25
#define SQL_DIAG_DROP_COLLATION   26
#define SQL_DIAG_DROP_DOMAIN   27
#define SQL_DIAG_DROP_INDEX   (-2)
#define SQL_DIAG_DROP_SCHEMA   31
#define SQL_DIAG_DROP_TABLE   32
#define SQL_DIAG_DROP_TRANSLATION   33
#define SQL_DIAG_DROP_VIEW   36
#define SQL_DIAG_DYNAMIC_DELETE_CURSOR   38
#define SQL_DIAG_DYNAMIC_UPDATE_CURSOR   81
#define SQL_DIAG_GRANT   48
#define SQL_DIAG_INSERT   50
#define SQL_DIAG_REVOKE   59
#define SQL_DIAG_SELECT_CURSOR   85
#define SQL_DIAG_UNKNOWN_STATEMENT   0
#define SQL_DIAG_UPDATE_WHERE   82
#define SQL_UNKNOWN_TYPE   0
#define SQL_CHAR   1
#define SQL_NUMERIC   2
#define SQL_DECIMAL   3
#define SQL_INTEGER   4
#define SQL_SMALLINT   5
#define SQL_FLOAT   6
#define SQL_REAL   7
#define SQL_DOUBLE   8
#define SQL_DATETIME   9
#define SQL_VARCHAR   12
#define SQL_TYPE_DATE   91
#define SQL_TYPE_TIME   92
#define SQL_TYPE_TIMESTAMP   93
#define SQL_UNSPECIFIED   0
#define SQL_INSENSITIVE   1
#define SQL_SENSITIVE   2
#define SQL_ALL_TYPES   0
#define SQL_DEFAULT   99
#define SQL_ARD_TYPE   (-99)
#define SQL_CODE_DATE   1
#define SQL_CODE_TIME   2
#define SQL_CODE_TIMESTAMP   3
#define SQL_FALSE   0
#define SQL_TRUE   1
#define SQL_NO_NULLS   0
#define SQL_NULLABLE   1
#define SQL_NULLABLE_UNKNOWN   2
#define SQL_PRED_NONE   0
#define SQL_PRED_CHAR   1
#define SQL_PRED_BASIC   2
#define SQL_NAMED   0
#define SQL_UNNAMED   1
#define SQL_DESC_ALLOC_AUTO   1
#define SQL_DESC_ALLOC_USER   2
#define SQL_CLOSE   0
#define SQL_DROP   1
#define SQL_UNBIND   2
#define SQL_RESET_PARAMS   3
#define SQL_FETCH_NEXT   1
#define SQL_FETCH_FIRST   2
#define SQL_FETCH_LAST   3
#define SQL_FETCH_PRIOR   4
#define SQL_FETCH_ABSOLUTE   5
#define SQL_FETCH_RELATIVE   6
#define SQL_COMMIT   0
#define SQL_ROLLBACK   1
#define SQL_NULL_HENV   0
#define SQL_NULL_HDBC   0
#define SQL_NULL_HSTMT   0
#define SQL_NULL_HDESC   0
#define SQL_NULL_DESC   0
#define SQL_NULL_HANDLE   0L
#define SQL_SCOPE_CURROW   0
#define SQL_SCOPE_TRANSACTION   1
#define SQL_SCOPE_SESSION   2
#define SQL_PC_UNKNOWN   0
#define SQL_PC_NON_PSEUDO   1
#define SQL_PC_PSEUDO   2
#define SQL_ROW_IDENTIFIER   1
#define SQL_INDEX_UNIQUE   0
#define SQL_INDEX_ALL   1
#define SQL_INDEX_CLUSTERED   1
#define SQL_INDEX_HASHED   2
#define SQL_INDEX_OTHER   3
#define SQL_API_SQLALLOCCONNECT   1
#define SQL_API_SQLALLOCENV   2
#define SQL_API_SQLALLOCHANDLE   1001
#define SQL_API_SQLALLOCSTMT   3
#define SQL_API_SQLBINDCOL   4
#define SQL_API_SQLBINDPARAM   1002
#define SQL_API_SQLCANCEL   5
#define SQL_API_SQLCLOSECURSOR   1003
#define SQL_API_SQLCOLATTRIBUTE   6
#define SQL_API_SQLCOLUMNS   40
#define SQL_API_SQLCONNECT   7
#define SQL_API_SQLCOPYDESC   1004
#define SQL_API_SQLDATASOURCES   57
#define SQL_API_SQLDESCRIBECOL   8
#define SQL_API_SQLDISCONNECT   9
#define SQL_API_SQLENDTRAN   1005
#define SQL_API_SQLERROR   10
#define SQL_API_SQLEXECDIRECT   11
#define SQL_API_SQLEXECUTE   12
#define SQL_API_SQLFETCH   13
#define SQL_API_SQLFETCHSCROLL   1021
#define SQL_API_SQLFREECONNECT   14
#define SQL_API_SQLFREEENV   15
#define SQL_API_SQLFREEHANDLE   1006
#define SQL_API_SQLFREESTMT   16
#define SQL_API_SQLGETCONNECTATTR   1007
#define SQL_API_SQLGETCONNECTOPTION   42
#define SQL_API_SQLGETCURSORNAME   17
#define SQL_API_SQLGETDATA   43
#define SQL_API_SQLGETDESCFIELD   1008
#define SQL_API_SQLGETDESCREC   1009
#define SQL_API_SQLGETDIAGFIELD   1010
#define SQL_API_SQLGETDIAGREC   1011
#define SQL_API_SQLGETENVATTR   1012
#define SQL_API_SQLGETFUNCTIONS   44
#define SQL_API_SQLGETINFO   45
#define SQL_API_SQLGETSTMTATTR   1014
#define SQL_API_SQLGETSTMTOPTION   46
#define SQL_API_SQLGETTYPEINFO   47
#define SQL_API_SQLNUMRESULTCOLS   18
#define SQL_API_SQLPARAMDATA   48
#define SQL_API_SQLPREPARE   19
#define SQL_API_SQLPUTDATA   49
#define SQL_API_SQLROWCOUNT   20
#define SQL_API_SQLSETCONNECTATTR   1016
#define SQL_API_SQLSETCONNECTOPTION   50
#define SQL_API_SQLSETCURSORNAME   21
#define SQL_API_SQLSETDESCFIELD   1017
#define SQL_API_SQLSETDESCREC   1018
#define SQL_API_SQLSETENVATTR   1019
#define SQL_API_SQLSETPARAM   22
#define SQL_API_SQLSETSTMTATTR   1020
#define SQL_API_SQLSETSTMTOPTION   51
#define SQL_API_SQLSPECIALCOLUMNS   52
#define SQL_API_SQLSTATISTICS   53
#define SQL_API_SQLTABLES   54
#define SQL_API_SQLTRANSACT   23
#define SQL_MAX_DRIVER_CONNECTIONS   0
#define SQL_MAXIMUM_DRIVER_CONNECTIONS   SQL_MAX_DRIVER_CONNECTIONS
#define SQL_MAX_CONCURRENT_ACTIVITIES   1
#define SQL_MAXIMUM_CONCURRENT_ACTIVITIES   SQL_MAX_CONCURRENT_ACTIVITIES
#define SQL_DATA_SOURCE_NAME   2
#define SQL_FETCH_DIRECTION   8
#define SQL_SERVER_NAME   13
#define SQL_SEARCH_PATTERN_ESCAPE   14
#define SQL_DBMS_NAME   17
#define SQL_DBMS_VER   18
#define SQL_ACCESSIBLE_TABLES   19
#define SQL_ACCESSIBLE_PROCEDURES   20
#define SQL_CURSOR_COMMIT_BEHAVIOR   23
#define SQL_DATA_SOURCE_READ_ONLY   25
#define SQL_DEFAULT_TXN_ISOLATION   26
#define SQL_IDENTIFIER_CASE   28
#define SQL_IDENTIFIER_QUOTE_CHAR   29
#define SQL_MAX_COLUMN_NAME_LEN   30
#define SQL_MAXIMUM_COLUMN_NAME_LENGTH   SQL_MAX_COLUMN_NAME_LEN
#define SQL_MAX_CURSOR_NAME_LEN   31
#define SQL_MAXIMUM_CURSOR_NAME_LENGTH   SQL_MAX_CURSOR_NAME_LEN
#define SQL_MAX_SCHEMA_NAME_LEN   32
#define SQL_MAXIMUM_SCHEMA_NAME_LENGTH   SQL_MAX_SCHEMA_NAME_LEN
#define SQL_MAX_CATALOG_NAME_LEN   34
#define SQL_MAXIMUM_CATALOG_NAME_LENGTH   SQL_MAX_CATALOG_NAME_LEN
#define SQL_MAX_TABLE_NAME_LEN   35
#define SQL_SCROLL_CONCURRENCY   43
#define SQL_TXN_CAPABLE   46
#define SQL_TRANSACTION_CAPABLE   SQL_TXN_CAPABLE
#define SQL_USER_NAME   47
#define SQL_TXN_ISOLATION_OPTION   72
#define SQL_TRANSACTION_ISOLATION_OPTION   SQL_TXN_ISOLATION_OPTION
#define SQL_INTEGRITY   73
#define SQL_GETDATA_EXTENSIONS   81
#define SQL_NULL_COLLATION   85
#define SQL_ALTER_TABLE   86
#define SQL_ORDER_BY_COLUMNS_IN_SELECT   90
#define SQL_SPECIAL_CHARACTERS   94
#define SQL_MAX_COLUMNS_IN_GROUP_BY   97
#define SQL_MAXIMUM_COLUMNS_IN_GROUP_BY   SQL_MAX_COLUMNS_IN_GROUP_BY
#define SQL_MAX_COLUMNS_IN_INDEX   98
#define SQL_MAXIMUM_COLUMNS_IN_INDEX   SQL_MAX_COLUMNS_IN_INDEX
#define SQL_MAX_COLUMNS_IN_ORDER_BY   99
#define SQL_MAXIMUM_COLUMNS_IN_ORDER_BY   SQL_MAX_COLUMNS_IN_ORDER_BY
#define SQL_MAX_COLUMNS_IN_SELECT   100
#define SQL_MAXIMUM_COLUMNS_IN_SELECT   SQL_MAX_COLUMNS_IN_SELECT
#define SQL_MAX_COLUMNS_IN_TABLE   101
#define SQL_MAX_INDEX_SIZE   102
#define SQL_MAXIMUM_INDEX_SIZE   SQL_MAX_INDEX_SIZE
#define SQL_MAX_ROW_SIZE   104
#define SQL_MAXIMUM_ROW_SIZE   SQL_MAX_ROW_SIZE
#define SQL_MAX_STATEMENT_LEN   105
#define SQL_MAXIMUM_STATEMENT_LENGTH   SQL_MAX_STATEMENT_LEN
#define SQL_MAX_TABLES_IN_SELECT   106
#define SQL_MAXIMUM_TABLES_IN_SELECT   SQL_MAX_TABLES_IN_SELECT
#define SQL_MAX_USER_NAME_LEN   107
#define SQL_MAXIMUM_USER_NAME_LENGTH   SQL_MAX_USER_NAME_LEN
#define SQL_OJ_CAPABILITIES   115
#define SQL_OUTER_JOIN_CAPABILITIES   SQL_OJ_CAPABILITIES
#define SQL_XOPEN_CLI_YEAR   10000
#define SQL_CURSOR_SENSITIVITY   10001
#define SQL_DESCRIBE_PARAMETER   10002
#define SQL_CATALOG_NAME   10003
#define SQL_COLLATION_SEQ   10004
#define SQL_MAX_IDENTIFIER_LEN   10005
#define SQL_MAXIMUM_IDENTIFIER_LENGTH   SQL_MAX_IDENTIFIER_LEN
#define SQL_AT_ADD_COLUMN   0x00000001L
#define SQL_AT_DROP_COLUMN   0x00000002L
#define SQL_AT_ADD_CONSTRAINT   0x00000008L
#define SQL_AM_NONE   0
#define SQL_AM_CONNECTION   1
#define SQL_AM_STATEMENT   2
#define SQL_CB_DELETE   0
#define SQL_CB_CLOSE   1
#define SQL_CB_PRESERVE   2
#define SQL_FD_FETCH_NEXT   0x00000001L
#define SQL_FD_FETCH_FIRST   0x00000002L
#define SQL_FD_FETCH_LAST   0x00000004L
#define SQL_FD_FETCH_PRIOR   0x00000008L
#define SQL_FD_FETCH_ABSOLUTE   0x00000010L
#define SQL_FD_FETCH_RELATIVE   0x00000020L
#define SQL_GD_ANY_COLUMN   0x00000001L
#define SQL_GD_ANY_ORDER   0x00000002L
#define SQL_IC_UPPER   1
#define SQL_IC_LOWER   2
#define SQL_IC_SENSITIVE   3
#define SQL_IC_MIXED   4
#define SQL_OJ_LEFT   0x00000001L
#define SQL_OJ_RIGHT   0x00000002L
#define SQL_OJ_FULL   0x00000004L
#define SQL_OJ_NESTED   0x00000008L
#define SQL_OJ_NOT_ORDERED   0x00000010L
#define SQL_OJ_INNER   0x00000020L
#define SQL_OJ_ALL_COMPARISON_OPS   0x00000040L
#define SQL_SCCO_READ_ONLY   0x00000001L
#define SQL_SCCO_LOCK   0x00000002L
#define SQL_SCCO_OPT_ROWVER   0x00000004L
#define SQL_SCCO_OPT_VALUES   0x00000008L
#define SQL_TC_NONE   0
#define SQL_TC_DML   1
#define SQL_TC_ALL   2
#define SQL_TC_DDL_COMMIT   3
#define SQL_TC_DDL_IGNORE   4
#define SQL_TXN_READ_UNCOMMITTED   0x00000001L
#define SQL_TRANSACTION_READ_UNCOMMITTED   SQL_TXN_READ_UNCOMMITTED
#define SQL_TXN_READ_COMMITTED   0x00000002L
#define SQL_TRANSACTION_READ_COMMITTED   SQL_TXN_READ_COMMITTED
#define SQL_TXN_REPEATABLE_READ   0x00000004L
#define SQL_TRANSACTION_REPEATABLE_READ   SQL_TXN_REPEATABLE_READ
#define SQL_TXN_SERIALIZABLE   0x00000008L
#define SQL_TRANSACTION_SERIALIZABLE   SQL_TXN_SERIALIZABLE
#define SQL_NC_HIGH   0
#define SQL_NC_LOW   1

Functions

SQLRETURN SQL_API SQLAllocConnect (SQLHENV EnvironmentHandle, SQLHDBC *ConnectionHandle)
SQLRETURN SQL_API SQLAllocEnv (SQLHENV *EnvironmentHandle)
SQLRETURN SQL_API SQLAllocHandle (SQLSMALLINT HandleType, SQLHANDLE InputHandle, SQLHANDLE *OutputHandle)
SQLRETURN SQL_API SQLAllocStmt (SQLHDBC ConnectionHandle, SQLHSTMT *StatementHandle)
SQLRETURN SQL_API SQLBindCol (SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLSMALLINT TargetType, SQLPOINTER TargetValue, SQLLEN BufferLength, SQLLEN *StrLen_or_Ind)
SQLRETURN SQL_API SQLBindParam (SQLHSTMT StatementHandle, SQLUSMALLINT ParameterNumber, SQLSMALLINT ValueType, SQLSMALLINT ParameterType, SQLULEN LengthPrecision, SQLSMALLINT ParameterScale, SQLPOINTER ParameterValue, SQLLEN *StrLen_or_Ind)
SQLRETURN SQL_API SQLCancel (SQLHSTMT StatementHandle)
SQLRETURN SQL_API SQLCloseCursor (SQLHSTMT StatementHandle)
SQLRETURN SQL_API SQLColAttribute (SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLUSMALLINT FieldIdentifier, SQLPOINTER CharacterAttribute, SQLSMALLINT BufferLength, SQLSMALLINT *StringLength, SQLLEN *NumericAttribute)
SQLRETURN SQL_API SQLColumns (SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3, SQLCHAR *ColumnName, SQLSMALLINT NameLength4)
SQLRETURN SQL_API SQLConnect (SQLHDBC ConnectionHandle, SQLCHAR *ServerName, SQLSMALLINT NameLength1, SQLCHAR *UserName, SQLSMALLINT NameLength2, SQLCHAR *Authentication, SQLSMALLINT NameLength3)
SQLRETURN SQL_API SQLCopyDesc (SQLHDESC SourceDescHandle, SQLHDESC TargetDescHandle)
SQLRETURN SQL_API SQLDataSources (SQLHENV EnvironmentHandle, SQLUSMALLINT Direction, SQLCHAR *ServerName, SQLSMALLINT BufferLength1, SQLSMALLINT *NameLength1, SQLCHAR *Description, SQLSMALLINT BufferLength2, SQLSMALLINT *NameLength2)
SQLRETURN SQL_API SQLDescribeCol (SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLCHAR *ColumnName, SQLSMALLINT BufferLength, SQLSMALLINT *NameLength, SQLSMALLINT *DataType, SQLULEN *ColumnSize, SQLSMALLINT *DecimalDigits, SQLSMALLINT *Nullable)
SQLRETURN SQL_API SQLDisconnect (SQLHDBC ConnectionHandle)
SQLRETURN SQL_API SQLEndTran (SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT CompletionType)
SQLRETURN SQL_API SQLError (SQLHENV EnvironmentHandle, SQLHDBC ConnectionHandle, SQLHSTMT StatementHandle, SQLCHAR *Sqlstate, SQLINTEGER *NativeError, SQLCHAR *MessageText, SQLSMALLINT BufferLength, SQLSMALLINT *TextLength)
SQLRETURN SQL_API SQLExecDirect (SQLHSTMT StatementHandle, SQLCHAR *StatementText, SQLINTEGER TextLength)
SQLRETURN SQL_API SQLExecute (SQLHSTMT StatementHandle)
SQLRETURN SQL_API SQLFetch (SQLHSTMT StatementHandle)
SQLRETURN SQL_API SQLFetchScroll (SQLHSTMT StatementHandle, SQLSMALLINT FetchOrientation, SQLROWOFFSET FetchOffset)
SQLRETURN SQL_API SQLFreeConnect (SQLHDBC ConnectionHandle)
SQLRETURN SQL_API SQLFreeEnv (SQLHENV EnvironmentHandle)
SQLRETURN SQL_API SQLFreeHandle (SQLSMALLINT HandleType, SQLHANDLE Handle)
SQLRETURN SQL_API SQLFreeStmt (SQLHSTMT StatementHandle, SQLUSMALLINT Option)
SQLRETURN SQL_API SQLGetConnectAttr (SQLHDBC ConnectionHandle, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER BufferLength, SQLINTEGER *StringLength)
SQLRETURN SQL_API SQLGetConnectOption (SQLHDBC ConnectionHandle, SQLUSMALLINT Option, SQLPOINTER Value)
SQLRETURN SQL_API SQLGetCursorName (SQLHSTMT StatementHandle, SQLCHAR *CursorName, SQLSMALLINT BufferLength, SQLSMALLINT *NameLength)
SQLRETURN SQL_API SQLGetData (SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLSMALLINT TargetType, SQLPOINTER TargetValue, SQLLEN BufferLength, SQLLEN *StrLen_or_Ind)
SQLRETURN SQLGetDescField (SQLHDESC DescriptorHandle, SQLSMALLINT RecNumber, SQLSMALLINT FieldIdentifier, SQLPOINTER Value, SQLINTEGER BufferLength, SQLINTEGER *StringLength)
SQLRETURN SQL_API SQLGetDescRec (SQLHDESC DescriptorHandle, SQLSMALLINT RecNumber, SQLCHAR *Name, SQLSMALLINT BufferLength, SQLSMALLINT *StringLength, SQLSMALLINT *Type, SQLSMALLINT *SubType, SQLLEN *Length, SQLSMALLINT *Precision, SQLSMALLINT *Scale, SQLSMALLINT *Nullable)
SQLRETURN SQL_API SQLGetDiagField (SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT RecNumber, SQLSMALLINT DiagIdentifier, SQLPOINTER DiagInfo, SQLSMALLINT BufferLength, SQLSMALLINT *StringLength)
SQLRETURN SQL_API SQLGetDiagRec (SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT RecNumber, SQLCHAR *Sqlstate, SQLINTEGER *NativeError, SQLCHAR *MessageText, SQLSMALLINT BufferLength, SQLSMALLINT *TextLength)
SQLRETURN SQL_API SQLGetEnvAttr (SQLHENV EnvironmentHandle, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER BufferLength, SQLINTEGER *StringLength)
SQLRETURN SQL_API SQLGetFunctions (SQLHDBC ConnectionHandle, SQLUSMALLINT FunctionId, SQLUSMALLINT *Supported)
SQLRETURN SQL_API SQLGetInfo (SQLHDBC ConnectionHandle, SQLUSMALLINT InfoType, SQLPOINTER InfoValue, SQLSMALLINT BufferLength, SQLSMALLINT *StringLength)
SQLRETURN SQL_API SQLGetStmtAttr (SQLHSTMT StatementHandle, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER BufferLength, SQLINTEGER *StringLength)
SQLRETURN SQL_API SQLGetStmtOption (SQLHSTMT StatementHandle, SQLUSMALLINT Option, SQLPOINTER Value)
SQLRETURN SQL_API SQLGetTypeInfo (SQLHSTMT StatementHandle, SQLSMALLINT DataType)
SQLRETURN SQL_API SQLNumResultCols (SQLHSTMT StatementHandle, SQLSMALLINT *ColumnCount)
SQLRETURN SQL_API SQLParamData (SQLHSTMT StatementHandle, SQLPOINTER *Value)
SQLRETURN SQL_API SQLPrepare (SQLHSTMT StatementHandle, SQLCHAR *StatementText, SQLINTEGER TextLength)
SQLRETURN SQL_API SQLPutData (SQLHSTMT StatementHandle, SQLPOINTER Data, SQLLEN StrLen_or_Ind)
SQLRETURN SQL_API SQLRowCount (SQLHSTMT StatementHandle, SQLLEN *RowCount)
SQLRETURN SQL_API SQLSetConnectAttr (SQLHDBC ConnectionHandle, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER StringLength)
SQLRETURN SQL_API SQLSetConnectOption (SQLHDBC ConnectionHandle, SQLUSMALLINT Option, SQLULEN Value)
SQLRETURN SQL_API SQLSetCursorName (SQLHSTMT StatementHandle, SQLCHAR *CursorName, SQLSMALLINT NameLength)
SQLRETURN SQL_API SQLSetDescField (SQLHDESC DescriptorHandle, SQLSMALLINT RecNumber, SQLSMALLINT FieldIdentifier, SQLPOINTER Value, SQLINTEGER BufferLength)
SQLRETURN SQL_API SQLSetDescRec (SQLHDESC DescriptorHandle, SQLSMALLINT RecNumber, SQLSMALLINT Type, SQLSMALLINT SubType, SQLLEN Length, SQLSMALLINT Precision, SQLSMALLINT Scale, SQLPOINTER Data, SQLLEN *StringLength, SQLLEN *Indicator)
SQLRETURN SQL_API SQLSetEnvAttr (SQLHENV EnvironmentHandle, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER StringLength)
SQLRETURN SQL_API SQLSetParam (SQLHSTMT StatementHandle, SQLUSMALLINT ParameterNumber, SQLSMALLINT ValueType, SQLSMALLINT ParameterType, SQLULEN LengthPrecision, SQLSMALLINT ParameterScale, SQLPOINTER ParameterValue, SQLLEN *StrLen_or_Ind)
SQLRETURN SQL_API SQLSetStmtAttr (SQLHSTMT StatementHandle, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER StringLength)
SQLRETURN SQL_API SQLSetStmtOption (SQLHSTMT StatementHandle, SQLUSMALLINT Option, SQLROWCOUNT Value)
SQLRETURN SQL_API SQLSpecialColumns (SQLHSTMT StatementHandle, SQLUSMALLINT IdentifierType, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3, SQLUSMALLINT Scope, SQLUSMALLINT Nullable)
SQLRETURN SQL_API SQLStatistics (SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3, SQLUSMALLINT Unique, SQLUSMALLINT Reserved)
SQLRETURN SQL_API SQLTables (SQLHSTMT StatementHandle, SQLCHAR *CatalogName, SQLSMALLINT NameLength1, SQLCHAR *SchemaName, SQLSMALLINT NameLength2, SQLCHAR *TableName, SQLSMALLINT NameLength3, SQLCHAR *TableType, SQLSMALLINT NameLength4)
SQLRETURN SQL_API SQLTransact (SQLHENV EnvironmentHandle, SQLHDBC ConnectionHandle, SQLUSMALLINT CompletionType)


Define Documentation

#define ODBCVER   0x0351

Definition at line 15 of file sql.h.

#define SQL_ACCESSIBLE_PROCEDURES   20

Definition at line 408 of file sql.h.

#define SQL_ACCESSIBLE_TABLES   19

Definition at line 407 of file sql.h.

#define SQL_ALL_TYPES   0

Definition at line 191 of file sql.h.

#define SQL_ALTER_TABLE   86

Definition at line 432 of file sql.h.

#define SQL_AM_CONNECTION   1

Definition at line 501 of file sql.h.

#define SQL_AM_NONE   0

Definition at line 500 of file sql.h.

#define SQL_AM_STATEMENT   2

Definition at line 502 of file sql.h.

#define SQL_API_SQLALLOCCONNECT   1

Definition at line 310 of file sql.h.

#define SQL_API_SQLALLOCENV   2

Definition at line 311 of file sql.h.

#define SQL_API_SQLALLOCHANDLE   1001

Definition at line 313 of file sql.h.

#define SQL_API_SQLALLOCSTMT   3

Definition at line 315 of file sql.h.

#define SQL_API_SQLBINDCOL   4

Definition at line 316 of file sql.h.

#define SQL_API_SQLBINDPARAM   1002

Definition at line 318 of file sql.h.

#define SQL_API_SQLCANCEL   5

Definition at line 320 of file sql.h.

#define SQL_API_SQLCLOSECURSOR   1003

Definition at line 322 of file sql.h.

#define SQL_API_SQLCOLATTRIBUTE   6

Definition at line 323 of file sql.h.

#define SQL_API_SQLCOLUMNS   40

Definition at line 325 of file sql.h.

#define SQL_API_SQLCONNECT   7

Definition at line 326 of file sql.h.

#define SQL_API_SQLCOPYDESC   1004

Definition at line 328 of file sql.h.

#define SQL_API_SQLDATASOURCES   57

Definition at line 330 of file sql.h.

#define SQL_API_SQLDESCRIBECOL   8

Definition at line 331 of file sql.h.

#define SQL_API_SQLDISCONNECT   9

Definition at line 332 of file sql.h.

#define SQL_API_SQLENDTRAN   1005

Definition at line 334 of file sql.h.

#define SQL_API_SQLERROR   10

Definition at line 336 of file sql.h.

#define SQL_API_SQLEXECDIRECT   11

Definition at line 337 of file sql.h.

#define SQL_API_SQLEXECUTE   12

Definition at line 338 of file sql.h.

#define SQL_API_SQLFETCH   13

Definition at line 339 of file sql.h.

#define SQL_API_SQLFETCHSCROLL   1021

Definition at line 341 of file sql.h.

#define SQL_API_SQLFREECONNECT   14

Definition at line 343 of file sql.h.

#define SQL_API_SQLFREEENV   15

Definition at line 344 of file sql.h.

#define SQL_API_SQLFREEHANDLE   1006

Definition at line 346 of file sql.h.

#define SQL_API_SQLFREESTMT   16

Definition at line 348 of file sql.h.

#define SQL_API_SQLGETCONNECTATTR   1007

Definition at line 350 of file sql.h.

#define SQL_API_SQLGETCONNECTOPTION   42

Definition at line 352 of file sql.h.

#define SQL_API_SQLGETCURSORNAME   17

Definition at line 353 of file sql.h.

#define SQL_API_SQLGETDATA   43

Definition at line 354 of file sql.h.

#define SQL_API_SQLGETDESCFIELD   1008

Definition at line 356 of file sql.h.

#define SQL_API_SQLGETDESCREC   1009

Definition at line 357 of file sql.h.

#define SQL_API_SQLGETDIAGFIELD   1010

Definition at line 358 of file sql.h.

#define SQL_API_SQLGETDIAGREC   1011

Definition at line 359 of file sql.h.

#define SQL_API_SQLGETENVATTR   1012

Definition at line 360 of file sql.h.

#define SQL_API_SQLGETFUNCTIONS   44

Definition at line 362 of file sql.h.

#define SQL_API_SQLGETINFO   45

Definition at line 363 of file sql.h.

#define SQL_API_SQLGETSTMTATTR   1014

Definition at line 365 of file sql.h.

#define SQL_API_SQLGETSTMTOPTION   46

Definition at line 367 of file sql.h.

#define SQL_API_SQLGETTYPEINFO   47

Definition at line 368 of file sql.h.

#define SQL_API_SQLNUMRESULTCOLS   18

Definition at line 369 of file sql.h.

#define SQL_API_SQLPARAMDATA   48

Definition at line 370 of file sql.h.

#define SQL_API_SQLPREPARE   19

Definition at line 371 of file sql.h.

#define SQL_API_SQLPUTDATA   49

Definition at line 372 of file sql.h.

#define SQL_API_SQLROWCOUNT   20

Definition at line 373 of file sql.h.

#define SQL_API_SQLSETCONNECTATTR   1016

Definition at line 375 of file sql.h.

#define SQL_API_SQLSETCONNECTOPTION   50

Definition at line 377 of file sql.h.

#define SQL_API_SQLSETCURSORNAME   21

Definition at line 378 of file sql.h.

#define SQL_API_SQLSETDESCFIELD   1017

Definition at line 380 of file sql.h.

#define SQL_API_SQLSETDESCREC   1018

Definition at line 381 of file sql.h.

#define SQL_API_SQLSETENVATTR   1019

Definition at line 382 of file sql.h.

#define SQL_API_SQLSETPARAM   22

Definition at line 384 of file sql.h.

#define SQL_API_SQLSETSTMTATTR   1020

Definition at line 386 of file sql.h.

#define SQL_API_SQLSETSTMTOPTION   51

Definition at line 388 of file sql.h.

#define SQL_API_SQLSPECIALCOLUMNS   52

Definition at line 389 of file sql.h.

#define SQL_API_SQLSTATISTICS   53

Definition at line 390 of file sql.h.

#define SQL_API_SQLTABLES   54

Definition at line 391 of file sql.h.

#define SQL_API_SQLTRANSACT   23

Definition at line 392 of file sql.h.

#define SQL_ARD_TYPE   (-99)

Definition at line 202 of file sql.h.

#define SQL_AT_ADD_COLUMN   0x00000001L

Definition at line 471 of file sql.h.

#define SQL_AT_ADD_CONSTRAINT   0x00000008L

Definition at line 476 of file sql.h.

#define SQL_AT_DROP_COLUMN   0x00000002L

Definition at line 472 of file sql.h.

#define SQL_ATTR_APP_PARAM_DESC   10011

Definition at line 80 of file sql.h.

#define SQL_ATTR_APP_ROW_DESC   10010

Definition at line 79 of file sql.h.

#define SQL_ATTR_AUTO_IPD   10001

Definition at line 73 of file sql.h.

#define SQL_ATTR_CURSOR_SCROLLABLE   (-1)

Definition at line 83 of file sql.h.

#define SQL_ATTR_CURSOR_SENSITIVITY   (-2)

Definition at line 84 of file sql.h.

#define SQL_ATTR_IMP_PARAM_DESC   10013

Definition at line 82 of file sql.h.

#define SQL_ATTR_IMP_ROW_DESC   10012

Definition at line 81 of file sql.h.

#define SQL_ATTR_METADATA_ID   10014

Definition at line 74 of file sql.h.

#define SQL_ATTR_OUTPUT_NTS   10001

Definition at line 68 of file sql.h.

Referenced by CSqlOdbcEnv::SQLGetEnvAttr(), and CSqlOdbcEnv::SQLSetEnvAttr().

#define SQL_CATALOG_NAME   10003

Definition at line 463 of file sql.h.

#define SQL_CB_CLOSE   1

Definition at line 507 of file sql.h.

#define SQL_CB_DELETE   0

Definition at line 506 of file sql.h.

#define SQL_CB_PRESERVE   2

Definition at line 508 of file sql.h.

#define SQL_CHAR   1

Definition at line 163 of file sql.h.

Referenced by AllDataType::convertFromSQLType(), AllDataType::convertToSQLType(), getSQLType(), getSQLTypeName(), isValidSQLType(), CSqlOdbcStmt::SQLColAttribute(), CSqlOdbcStmt::SQLDescribeCol(), and CSqlOdbcStmt::SQLDescribeParam().

#define SQL_CLOSE   0

Definition at line 249 of file sql.h.

Referenced by CSqlOdbcStmt::resetStmt(), CSqlOdbcDbc::SQLEndTran(), and CSqlOdbcStmt::SQLFreeStmt().

#define SQL_CODE_DATE   1

Definition at line 207 of file sql.h.

#define SQL_CODE_TIME   2

Definition at line 208 of file sql.h.

#define SQL_CODE_TIMESTAMP   3

Definition at line 209 of file sql.h.

#define SQL_COLLATION_SEQ   10004

Definition at line 464 of file sql.h.

#define SQL_COMMIT   0

Definition at line 267 of file sql.h.

Referenced by SqlOdbcConnection::commit(), CSqlOdbcDbc::SQLEndTran(), CSqlOdbcStmt::SQLExecute(), and CSqlOdbcDbc::SQLSetConnectAttr().

#define SQL_CURSOR_COMMIT_BEHAVIOR   23

Definition at line 409 of file sql.h.

#define SQL_CURSOR_SENSITIVITY   10001

Definition at line 461 of file sql.h.

#define SQL_DATA_AT_EXEC   (-2)

Definition at line 30 of file sql.h.

#define SQL_DATA_SOURCE_NAME   2

Definition at line 401 of file sql.h.

#define SQL_DATA_SOURCE_READ_ONLY   25

Definition at line 410 of file sql.h.

#define SQL_DATE_LEN   10

Definition at line 53 of file sql.h.

#define SQL_DATETIME   9

Definition at line 172 of file sql.h.

#define SQL_DBMS_NAME   17

Definition at line 405 of file sql.h.

#define SQL_DBMS_VER   18

Definition at line 406 of file sql.h.

#define SQL_DECIMAL   3

Definition at line 165 of file sql.h.

Referenced by getSQLTypeName(), and isValidSQLType().

#define SQL_DEFAULT   99

Definition at line 195 of file sql.h.

#define SQL_DEFAULT_TXN_ISOLATION   26

Definition at line 411 of file sql.h.

Referenced by CSqlOdbcDbc::SQLGetConnectAttr(), and CSqlOdbcDbc::SQLSetConnectAttr().

#define SQL_DESC_ALLOC_AUTO   1

Definition at line 244 of file sql.h.

#define SQL_DESC_ALLOC_TYPE   1099

Definition at line 108 of file sql.h.

#define SQL_DESC_ALLOC_USER   2

Definition at line 245 of file sql.h.

#define SQL_DESC_COUNT   1001

Definition at line 95 of file sql.h.

Referenced by CSqlOdbcStmt::SQLColAttribute().

#define SQL_DESC_DATA_PTR   1010

Definition at line 104 of file sql.h.

#define SQL_DESC_DATETIME_INTERVAL_CODE   1007

Definition at line 101 of file sql.h.

#define SQL_DESC_INDICATOR_PTR   1009

Definition at line 103 of file sql.h.

#define SQL_DESC_LENGTH   1003

Definition at line 97 of file sql.h.

Referenced by CSqlOdbcStmt::SQLColAttribute().

#define SQL_DESC_NAME   1011

Definition at line 105 of file sql.h.

Referenced by CSqlOdbcStmt::SQLColAttribute().

#define SQL_DESC_NULLABLE   1008

Definition at line 102 of file sql.h.

Referenced by CSqlOdbcStmt::SQLColAttribute().

#define SQL_DESC_OCTET_LENGTH   1013

Definition at line 107 of file sql.h.

#define SQL_DESC_OCTET_LENGTH_PTR   1004

Definition at line 98 of file sql.h.

#define SQL_DESC_PRECISION   1005

Definition at line 99 of file sql.h.

Referenced by CSqlOdbcStmt::SQLColAttribute().

#define SQL_DESC_SCALE   1006

Definition at line 100 of file sql.h.

Referenced by CSqlOdbcStmt::SQLColAttribute().

#define SQL_DESC_TYPE   1002

Definition at line 96 of file sql.h.

Referenced by CSqlOdbcStmt::SQLColAttribute().

#define SQL_DESC_UNNAMED   1012

Definition at line 106 of file sql.h.

#define SQL_DESCRIBE_PARAMETER   10002

Definition at line 462 of file sql.h.

#define SQL_DIAG_ALTER_DOMAIN   3

Definition at line 129 of file sql.h.

#define SQL_DIAG_ALTER_TABLE   4

Definition at line 130 of file sql.h.

#define SQL_DIAG_CALL   7

Definition at line 131 of file sql.h.

#define SQL_DIAG_CLASS_ORIGIN   8

Definition at line 120 of file sql.h.

#define SQL_DIAG_CONNECTION_NAME   10

Definition at line 122 of file sql.h.

#define SQL_DIAG_CREATE_ASSERTION   6

Definition at line 132 of file sql.h.

#define SQL_DIAG_CREATE_CHARACTER_SET   8

Definition at line 133 of file sql.h.

#define SQL_DIAG_CREATE_COLLATION   10

Definition at line 134 of file sql.h.

#define SQL_DIAG_CREATE_DOMAIN   23

Definition at line 135 of file sql.h.

#define SQL_DIAG_CREATE_INDEX   (-1)

Definition at line 136 of file sql.h.

#define SQL_DIAG_CREATE_SCHEMA   64

Definition at line 137 of file sql.h.

#define SQL_DIAG_CREATE_TABLE   77

Definition at line 138 of file sql.h.

#define SQL_DIAG_CREATE_TRANSLATION   79

Definition at line 139 of file sql.h.

#define SQL_DIAG_CREATE_VIEW   84

Definition at line 140 of file sql.h.

#define SQL_DIAG_DELETE_WHERE   19

Definition at line 141 of file sql.h.

#define SQL_DIAG_DROP_ASSERTION   24

Definition at line 142 of file sql.h.

#define SQL_DIAG_DROP_CHARACTER_SET   25

Definition at line 143 of file sql.h.

#define SQL_DIAG_DROP_COLLATION   26

Definition at line 144 of file sql.h.

#define SQL_DIAG_DROP_DOMAIN   27

Definition at line 145 of file sql.h.

#define SQL_DIAG_DROP_INDEX   (-2)

Definition at line 146 of file sql.h.

#define SQL_DIAG_DROP_SCHEMA   31

Definition at line 147 of file sql.h.

#define SQL_DIAG_DROP_TABLE   32

Definition at line 148 of file sql.h.

#define SQL_DIAG_DROP_TRANSLATION   33

Definition at line 149 of file sql.h.

#define SQL_DIAG_DROP_VIEW   36

Definition at line 150 of file sql.h.

#define SQL_DIAG_DYNAMIC_DELETE_CURSOR   38

Definition at line 151 of file sql.h.

#define SQL_DIAG_DYNAMIC_FUNCTION   7

Definition at line 119 of file sql.h.

#define SQL_DIAG_DYNAMIC_FUNCTION_CODE   12

Definition at line 124 of file sql.h.

#define SQL_DIAG_DYNAMIC_UPDATE_CURSOR   81

Definition at line 152 of file sql.h.

#define SQL_DIAG_GRANT   48

Definition at line 153 of file sql.h.

#define SQL_DIAG_INSERT   50

Definition at line 154 of file sql.h.

#define SQL_DIAG_MESSAGE_TEXT   6

Definition at line 118 of file sql.h.

#define SQL_DIAG_NATIVE   5

Definition at line 117 of file sql.h.

#define SQL_DIAG_NUMBER   2

Definition at line 114 of file sql.h.

#define SQL_DIAG_RETURNCODE   1

Definition at line 113 of file sql.h.

#define SQL_DIAG_REVOKE   59

Definition at line 155 of file sql.h.

#define SQL_DIAG_ROW_COUNT   3

Definition at line 115 of file sql.h.

#define SQL_DIAG_SELECT_CURSOR   85

Definition at line 156 of file sql.h.

#define SQL_DIAG_SERVER_NAME   11

Definition at line 123 of file sql.h.

#define SQL_DIAG_SQLSTATE   4

Definition at line 116 of file sql.h.

#define SQL_DIAG_SUBCLASS_ORIGIN   9

Definition at line 121 of file sql.h.

#define SQL_DIAG_UNKNOWN_STATEMENT   0

Definition at line 157 of file sql.h.

#define SQL_DIAG_UPDATE_WHERE   82

Definition at line 158 of file sql.h.

#define SQL_DOUBLE   8

Definition at line 170 of file sql.h.

Referenced by AllDataType::convertFromSQLType(), AllDataType::convertToSQLType(), getSQLType(), getSQLTypeName(), and isValidSQLType().

#define SQL_DROP   1

Definition at line 250 of file sql.h.

Referenced by SQLFreeStmt().

#define SQL_ERROR   (-1)

Definition at line 36 of file sql.h.

Referenced by CSqlOdbcStmt::chkStateForSQLBindCol(), CSqlOdbcStmt::chkStateForSQLBindParameter(), CSqlOdbcStmt::chkStateForSQLCloseCursor(), CSqlOdbcDbc::chkStateForSQLConnect(), CSqlOdbcStmt::chkStateForSQLDescribeCol(), CSqlOdbcStmt::chkStateForSQLDescribeParam(), CSqlOdbcDbc::chkStateForSQLDisconnect(), CSqlOdbcDbc::chkStateForSQLEndTran(), CSqlOdbcStmt::chkStateForSQLExecDirect(), CSqlOdbcStmt::chkStateForSQLExecute(), CSqlOdbcStmt::chkStateForSQLFetch(), CSqlOdbcStmt::chkStateForSQLFreeHandle(), CSqlOdbcDbc::chkStateForSQLFreeHandle(), CSqlOdbcEnv::chkStateForSQLFreeHandle(), CSqlOdbcStmt::chkStateForSQLFreeStmt(), CSqlOdbcStmt::chkStateForSQLGetCursorName(), CSqlOdbcStmt::chkStateForSQLNumParams(), CSqlOdbcStmt::chkStateForSQLNumResultCols(), CSqlOdbcStmt::chkStateForSQLPrepare(), CSqlOdbcStmt::chkStateForSQLRowCount(), CSqlOdbcDbc::chkStateForSQLSetConnectAttr(), CSqlOdbcStmt::chkStateForSQLSetCursorName(), CSqlOdbcEnv::chkStateForSQLSetEnvAttr(), CSqlOdbcDescList::delDesc(), CSqlOdbcDescList::getDescWithColNum(), getSQLType(), isValidCType(), isValidSQLType(), CSqlOdbcError::printStr(), CSqlOdbcStmt::SQLAllocHandle(), CSqlOdbcEnv::SQLAllocHandle(), CSqlOdbcDbc::SQLAllocHandle(), SQLAllocHandle(), CSqlOdbcStmt::SQLBindCol(), CSqlOdbcStmt::SQLBindParameter(), CSqlOdbcStmt::SQLCloseCursor(), CSqlOdbcStmt::SQLColAttribute(), CSqlOdbcDbc::SQLConnect(), CSqlOdbcStmt::SQLDescribeCol(), CSqlOdbcStmt::SQLDescribeParam(), CSqlOdbcDbc::SQLDisconnect(), CSqlOdbcEnv::SQLEndTran(), CSqlOdbcDbc::SQLEndTran(), SQLEndTran(), CSqlOdbcStmt::SQLExecDirect(), CSqlOdbcStmt::SQLExecute(), CSqlOdbcStmt::SQLFetch(), CSqlOdbcStmt::SQLFreeHandle(), CSqlOdbcEnv::SQLFreeHandle(), CSqlOdbcDbc::SQLFreeHandle(), SQLFreeHandle(), CSqlOdbcStmt::SQLFreeStmt(), CSqlOdbcDbc::SQLGetConnectAttr(), CSqlOdbcStmt::SQLGetCursorName(), CSqlOdbcError::SQLGetDiagRec(), SQLGetDiagRec(), CSqlOdbcEnv::SQLGetEnvAttr(), CSqlOdbcStmt::SQLNumParams(), CSqlOdbcStmt::SQLNumResultCols(), CSqlOdbcStmt::SQLPrepare(), CSqlOdbcStmt::SQLRowCount(), CSqlOdbcDbc::SQLSetConnectAttr(), CSqlOdbcStmt::SQLSetCursorName(), and CSqlOdbcEnv::SQLSetEnvAttr().

#define SQL_FALSE   0

Definition at line 214 of file sql.h.

Referenced by CSqlOdbcStmt::SQLColAttribute().

#define SQL_FD_FETCH_ABSOLUTE   0x00000010L

Definition at line 515 of file sql.h.

#define SQL_FD_FETCH_FIRST   0x00000002L

Definition at line 512 of file sql.h.

#define SQL_FD_FETCH_LAST   0x00000004L

Definition at line 513 of file sql.h.

#define SQL_FD_FETCH_NEXT   0x00000001L

Definition at line 511 of file sql.h.

#define SQL_FD_FETCH_PRIOR   0x00000008L

Definition at line 514 of file sql.h.

#define SQL_FD_FETCH_RELATIVE   0x00000020L

Definition at line 516 of file sql.h.

#define SQL_FETCH_ABSOLUTE   5

Definition at line 263 of file sql.h.

#define SQL_FETCH_DIRECTION   8

Definition at line 402 of file sql.h.

#define SQL_FETCH_FIRST   2

Definition at line 258 of file sql.h.

#define SQL_FETCH_LAST   3

Definition at line 261 of file sql.h.

#define SQL_FETCH_NEXT   1

Definition at line 257 of file sql.h.

#define SQL_FETCH_PRIOR   4

Definition at line 262 of file sql.h.

#define SQL_FETCH_RELATIVE   6

Definition at line 264 of file sql.h.

#define SQL_FLOAT   6

Definition at line 168 of file sql.h.

Referenced by AllDataType::convertFromSQLType(), getSQLType(), getSQLTypeName(), and isValidSQLType().

#define SQL_GD_ANY_COLUMN   0x00000001L

Definition at line 519 of file sql.h.

#define SQL_GD_ANY_ORDER   0x00000002L

Definition at line 520 of file sql.h.

#define SQL_GETDATA_EXTENSIONS   81

Definition at line 430 of file sql.h.

#define SQL_HANDLE_DBC   2

Definition at line 61 of file sql.h.

Referenced by SqlOdbcConnection::connect(), SqlOdbcConnection::disconnect(), isValidHandle(), CacheTableLoader::load(), CSqlOdbcStmt::SQLAllocHandle(), SQLAllocHandle(), SQLConnect(), SQLDisconnect(), SQLDriverConnect(), SQLEndTran(), SQLError(), CSqlOdbcDbc::SQLFreeHandle(), SQLFreeHandle(), SQLGetConnectAttr(), CSqlOdbcError::SQLGetDiagRec(), SQLSetConnectAttr(), and SQLTransact().

#define SQL_HANDLE_DESC   4

Definition at line 63 of file sql.h.

#define SQL_HANDLE_ENV   1

Definition at line 60 of file sql.h.

Referenced by SqlOdbcConnection::connect(), SqlOdbcConnection::disconnect(), isValidHandle(), CacheTableLoader::load(), CSqlOdbcDbc::SQLAllocHandle(), SQLAllocHandle(), SQLEndTran(), SQLError(), CSqlOdbcEnv::SQLFreeHandle(), SQLFreeHandle(), CSqlOdbcError::SQLGetDiagRec(), SQLGetEnvAttr(), SQLSetEnvAttr(), and SQLTransact().

#define SQL_HANDLE_STMT   3

Definition at line 62 of file sql.h.

Referenced by SqlOdbcStatement::free(), SqlOdbcStatement::getPrimaryKeyFieldName(), isValidHandle(), CacheTableLoader::load(), SqlOdbcStatement::prepare(), SQLAllocHandle(), SQLBindCol(), SQLBindParameter(), SQLCloseCursor(), SQLColAttribute(), SQLColAttributes(), SQLDescribeCol(), SQLDescribeParam(), SQLError(), SQLExecDirect(), SQLExecute(), SQLFetch(), CSqlOdbcStmt::SQLFreeHandle(), SQLFreeHandle(), SQLFreeStmt(), SQLGetCursorName(), CSqlOdbcError::SQLGetDiagRec(), SQLNumParams(), SQLNumResultCols(), SQLPrepare(), SQLRowCount(), and SQLSetCursorName().

#define SQL_IC_LOWER   2

Definition at line 524 of file sql.h.

#define SQL_IC_MIXED   4

Definition at line 526 of file sql.h.

#define SQL_IC_SENSITIVE   3

Definition at line 525 of file sql.h.

#define SQL_IC_UPPER   1

Definition at line 523 of file sql.h.

#define SQL_IDENTIFIER_CASE   28

Definition at line 412 of file sql.h.

#define SQL_IDENTIFIER_QUOTE_CHAR   29

Definition at line 413 of file sql.h.

#define SQL_INDEX_ALL   1

Definition at line 302 of file sql.h.

Referenced by CacheTableLoader::load().

#define SQL_INDEX_CLUSTERED   1

Definition at line 305 of file sql.h.

#define SQL_INDEX_HASHED   2

Definition at line 306 of file sql.h.

#define SQL_INDEX_OTHER   3

Definition at line 307 of file sql.h.

#define SQL_INDEX_UNIQUE   0

Definition at line 301 of file sql.h.

#define SQL_INSENSITIVE   1

Definition at line 186 of file sql.h.

#define SQL_INTEGER   4

Definition at line 166 of file sql.h.

Referenced by AllDataType::convertFromSQLType(), AllDataType::convertToSQL_C_Type(), AllDataType::convertToSQLType(), getSQLType(), getSQLTypeName(), and isValidSQLType().

#define SQL_INTEGRITY   73

Definition at line 429 of file sql.h.

#define SQL_INVALID_HANDLE   (-2)

Definition at line 37 of file sql.h.

Referenced by isValidHandle(), CSqlOdbcStmt::SQLAllocHandle(), CSqlOdbcDbc::SQLAllocHandle(), SQLBindCol(), SQLBindParameter(), SQLCloseCursor(), SQLColAttribute(), SQLColAttributes(), SQLConnect(), SQLDescribeCol(), SQLDescribeParam(), SQLDisconnect(), SQLDriverConnect(), SQLEndTran(), SQLError(), SQLExecDirect(), SQLExecute(), SQLFetch(), CSqlOdbcStmt::SQLFreeHandle(), CSqlOdbcEnv::SQLFreeHandle(), CSqlOdbcDbc::SQLFreeHandle(), SQLFreeStmt(), SQLGetConnectAttr(), SQLGetCursorName(), SQLGetEnvAttr(), SQLNumParams(), SQLNumResultCols(), SQLPrepare(), SQLRowCount(), SQLSetConnectAttr(), SQLSetCursorName(), SQLSetEnvAttr(), and SQLTransact().

#define SQL_MAX_CATALOG_NAME_LEN   34

Definition at line 420 of file sql.h.

#define SQL_MAX_COLUMN_NAME_LEN   30

Definition at line 414 of file sql.h.

#define SQL_MAX_COLUMNS_IN_GROUP_BY   97

Definition at line 435 of file sql.h.

#define SQL_MAX_COLUMNS_IN_INDEX   98

Definition at line 437 of file sql.h.

#define SQL_MAX_COLUMNS_IN_ORDER_BY   99

Definition at line 439 of file sql.h.

#define SQL_MAX_COLUMNS_IN_SELECT   100

Definition at line 441 of file sql.h.

#define SQL_MAX_COLUMNS_IN_TABLE   101

Definition at line 443 of file sql.h.

#define SQL_MAX_CONCURRENT_ACTIVITIES   1

Definition at line 398 of file sql.h.

#define SQL_MAX_CURSOR_NAME_LEN   31

Definition at line 416 of file sql.h.

Referenced by CSqlOdbcStmt::SQLSetCursorName().

#define SQL_MAX_DRIVER_CONNECTIONS   0

Definition at line 396 of file sql.h.

#define SQL_MAX_IDENTIFIER_LEN   10005

Definition at line 465 of file sql.h.

#define SQL_MAX_INDEX_SIZE   102

Definition at line 444 of file sql.h.

#define SQL_MAX_MESSAGE_LENGTH   512

Definition at line 49 of file sql.h.

#define SQL_MAX_ROW_SIZE   104

Definition at line 446 of file sql.h.

#define SQL_MAX_SCHEMA_NAME_LEN   32

Definition at line 418 of file sql.h.

#define SQL_MAX_STATEMENT_LEN   105

Definition at line 448 of file sql.h.

#define SQL_MAX_TABLE_NAME_LEN   35

Definition at line 422 of file sql.h.

#define SQL_MAX_TABLES_IN_SELECT   106

Definition at line 450 of file sql.h.

#define SQL_MAX_USER_NAME_LEN   107

Definition at line 452 of file sql.h.

#define SQL_MAXIMUM_CATALOG_NAME_LENGTH   SQL_MAX_CATALOG_NAME_LEN

Definition at line 421 of file sql.h.

#define SQL_MAXIMUM_COLUMN_NAME_LENGTH   SQL_MAX_COLUMN_NAME_LEN

Definition at line 415 of file sql.h.

#define SQL_MAXIMUM_COLUMNS_IN_GROUP_BY   SQL_MAX_COLUMNS_IN_GROUP_BY

Definition at line 436 of file sql.h.

#define SQL_MAXIMUM_COLUMNS_IN_INDEX   SQL_MAX_COLUMNS_IN_INDEX

Definition at line 438 of file sql.h.

#define SQL_MAXIMUM_COLUMNS_IN_ORDER_BY   SQL_MAX_COLUMNS_IN_ORDER_BY

Definition at line 440 of file sql.h.

#define SQL_MAXIMUM_COLUMNS_IN_SELECT   SQL_MAX_COLUMNS_IN_SELECT

Definition at line 442 of file sql.h.

#define SQL_MAXIMUM_CONCURRENT_ACTIVITIES   SQL_MAX_CONCURRENT_ACTIVITIES

Definition at line 399 of file sql.h.

#define SQL_MAXIMUM_CURSOR_NAME_LENGTH   SQL_MAX_CURSOR_NAME_LEN

Definition at line 417 of file sql.h.

#define SQL_MAXIMUM_DRIVER_CONNECTIONS   SQL_MAX_DRIVER_CONNECTIONS

Definition at line 397 of file sql.h.

#define SQL_MAXIMUM_IDENTIFIER_LENGTH   SQL_MAX_IDENTIFIER_LEN

Definition at line 466 of file sql.h.

#define SQL_MAXIMUM_INDEX_SIZE   SQL_MAX_INDEX_SIZE

Definition at line 445 of file sql.h.

#define SQL_MAXIMUM_ROW_SIZE   SQL_MAX_ROW_SIZE

Definition at line 447 of file sql.h.

#define SQL_MAXIMUM_SCHEMA_NAME_LENGTH   SQL_MAX_SCHEMA_NAME_LEN

Definition at line 419 of file sql.h.

#define SQL_MAXIMUM_STATEMENT_LENGTH   SQL_MAX_STATEMENT_LEN

Definition at line 449 of file sql.h.

#define SQL_MAXIMUM_TABLES_IN_SELECT   SQL_MAX_TABLES_IN_SELECT

Definition at line 451 of file sql.h.

#define SQL_MAXIMUM_USER_NAME_LENGTH   SQL_MAX_USER_NAME_LEN

Definition at line 453 of file sql.h.

#define SQL_NAMED   0

Definition at line 238 of file sql.h.

#define SQL_NC_HIGH   0

Definition at line 566 of file sql.h.

#define SQL_NC_LOW   1

Definition at line 567 of file sql.h.

#define SQL_NEED_DATA   99

Definition at line 39 of file sql.h.

#define SQL_NO_DATA   100

Definition at line 34 of file sql.h.

#define SQL_NO_NULLS   0

Definition at line 219 of file sql.h.

#define SQL_NONSCROLLABLE   0

Definition at line 89 of file sql.h.

#define SQL_NTS   (-3)

Definition at line 45 of file sql.h.

Referenced by SqlOdbcConnection::connect(), SqlOdbcStatement::getPrimaryKeyFieldName(), CacheTableLoader::load(), SqlOdbcStatement::prepare(), CSqlOdbcStmt::SQLBindCol(), CSqlOdbcStmt::SQLBindParameter(), CSqlOdbcDbc::SQLConnect(), CSqlOdbcStmt::SQLPrepare(), and CSqlOdbcStmt::SQLSetCursorName().

#define SQL_NTSL   (-3L)

Definition at line 46 of file sql.h.

#define SQL_NULL_COLLATION   85

Definition at line 431 of file sql.h.

#define SQL_NULL_DATA   (-1)

Definition at line 29 of file sql.h.

Referenced by CSqlOdbcStmt::SQLExecute(), and CSqlOdbcStmt::SQLFetch().

#define SQL_NULL_DESC   0

Definition at line 276 of file sql.h.

#define SQL_NULL_HANDLE   0L

Definition at line 281 of file sql.h.

Referenced by SqlOdbcConnection::connect(), CacheTableLoader::load(), SQLAllocEnv(), and CSqlOdbcEnv::SQLAllocHandle().

#define SQL_NULL_HDBC   0

Definition at line 272 of file sql.h.

#define SQL_NULL_HDESC   0

Definition at line 275 of file sql.h.

#define SQL_NULL_HENV   0

Definition at line 271 of file sql.h.

Referenced by CSqlOdbcEnv::SQLAllocHandle().

#define SQL_NULL_HSTMT   0

Definition at line 273 of file sql.h.

#define SQL_NULLABLE   1

Definition at line 220 of file sql.h.

#define SQL_NULLABLE_UNKNOWN   2

Definition at line 225 of file sql.h.

#define SQL_NUMERIC   2

Definition at line 164 of file sql.h.

Referenced by getSQLType(), getSQLTypeName(), and isValidSQLType().

#define SQL_OJ_ALL_COMPARISON_OPS   0x00000040L

Definition at line 539 of file sql.h.

#define SQL_OJ_CAPABILITIES   115

Definition at line 455 of file sql.h.

#define SQL_OJ_FULL   0x00000004L

Definition at line 535 of file sql.h.

#define SQL_OJ_INNER   0x00000020L

Definition at line 538 of file sql.h.

#define SQL_OJ_LEFT   0x00000001L

Definition at line 533 of file sql.h.

#define SQL_OJ_NESTED   0x00000008L

Definition at line 536 of file sql.h.

#define SQL_OJ_NOT_ORDERED   0x00000010L

Definition at line 537 of file sql.h.

#define SQL_OJ_RIGHT   0x00000002L

Definition at line 534 of file sql.h.

#define SQL_ORDER_BY_COLUMNS_IN_SELECT   90

Definition at line 433 of file sql.h.

#define SQL_OUTER_JOIN_CAPABILITIES   SQL_OJ_CAPABILITIES

Definition at line 456 of file sql.h.

#define SQL_PC_NON_PSEUDO   1

Definition at line 291 of file sql.h.

#define SQL_PC_PSEUDO   2

Definition at line 293 of file sql.h.

#define SQL_PC_UNKNOWN   0

Definition at line 289 of file sql.h.

#define SQL_PRED_BASIC   2

Definition at line 233 of file sql.h.

Referenced by CSqlOdbcStmt::SQLColAttribute().

#define SQL_PRED_CHAR   1

Definition at line 232 of file sql.h.

#define SQL_PRED_NONE   0

Definition at line 231 of file sql.h.

#define SQL_REAL   7

Definition at line 169 of file sql.h.

Referenced by AllDataType::convertFromSQLType(), AllDataType::convertToSQLType(), getSQLTypeName(), and isValidSQLType().

#define SQL_RESET_PARAMS   3

Definition at line 252 of file sql.h.

Referenced by CSqlOdbcStmt::resetStmt(), and CSqlOdbcStmt::SQLFreeStmt().

#define SQL_ROLLBACK   1

Definition at line 268 of file sql.h.

Referenced by SqlOdbcConnection::beginTrans(), SqlOdbcConnection::rollback(), and CSqlOdbcDbc::SQLEndTran().

#define SQL_ROW_IDENTIFIER   1

Definition at line 297 of file sql.h.

#define SQL_SCCO_LOCK   0x00000002L

Definition at line 544 of file sql.h.

#define SQL_SCCO_OPT_ROWVER   0x00000004L

Definition at line 545 of file sql.h.

#define SQL_SCCO_OPT_VALUES   0x00000008L

Definition at line 546 of file sql.h.

#define SQL_SCCO_READ_ONLY   0x00000001L

Definition at line 543 of file sql.h.

#define SQL_SCOPE_CURROW   0

Definition at line 285 of file sql.h.

#define SQL_SCOPE_SESSION   2

Definition at line 287 of file sql.h.

#define SQL_SCOPE_TRANSACTION   1

Definition at line 286 of file sql.h.

#define SQL_SCROLL_CONCURRENCY   43

Definition at line 423 of file sql.h.

#define SQL_SCROLLABLE   1

Definition at line 90 of file sql.h.

#define SQL_SEARCH_PATTERN_ESCAPE   14

Definition at line 404 of file sql.h.

#define SQL_SENSITIVE   2

Definition at line 187 of file sql.h.

#define SQL_SERVER_NAME   13

Definition at line 403 of file sql.h.

#define SQL_SMALLINT   5

Definition at line 167 of file sql.h.

Referenced by AllDataType::convertFromSQLType(), AllDataType::convertToSQLType(), getSQLType(), getSQLTypeName(), and isValidSQLType().

#define SQL_SPECIAL_CHARACTERS   94

Definition at line 434 of file sql.h.

#define SQL_STILL_EXECUTING   2

Definition at line 38 of file sql.h.

#define SQL_SUCCEEDED ( rc   )     (((rc)&(~1))==0)

Definition at line 40 of file sql.h.

Referenced by SqlOdbcConnection::beginTrans(), SqlOdbcConnection::commit(), SqlOdbcConnection::connect(), CacheTableLoader::load(), and SqlOdbcConnection::rollback().

#define SQL_SUCCESS   0

Definition at line 31 of file sql.h.

Referenced by CSqlOdbcStmt::chkStateForSQLBindCol(), CSqlOdbcStmt::chkStateForSQLBindParameter(), CSqlOdbcStmt::chkStateForSQLCloseCursor(), CSqlOdbcDbc::chkStateForSQLConnect(), CSqlOdbcStmt::chkStateForSQLDescribeCol(), CSqlOdbcStmt::chkStateForSQLDescribeParam(), CSqlOdbcDbc::chkStateForSQLDisconnect(), CSqlOdbcDbc::chkStateForSQLEndTran(), CSqlOdbcStmt::chkStateForSQLExecDirect(), CSqlOdbcStmt::chkStateForSQLExecute(), CSqlOdbcStmt::chkStateForSQLFetch(), CSqlOdbcStmt::chkStateForSQLFreeHandle(), CSqlOdbcDbc::chkStateForSQLFreeHandle(), CSqlOdbcEnv::chkStateForSQLFreeHandle(), CSqlOdbcStmt::chkStateForSQLFreeStmt(), CSqlOdbcStmt::chkStateForSQLGetCursorName(), CSqlOdbcStmt::chkStateForSQLNumParams(), CSqlOdbcStmt::chkStateForSQLNumResultCols(), CSqlOdbcStmt::chkStateForSQLPrepare(), CSqlOdbcStmt::chkStateForSQLRowCount(), CSqlOdbcDbc::chkStateForSQLSetConnectAttr(), CSqlOdbcStmt::chkStateForSQLSetCursorName(), CSqlOdbcEnv::chkStateForSQLSetEnvAttr(), SqlOdbcConnection::connect(), CSqlOdbcDescList::delDesc(), CSqlOdbcDescList::getDescWithColNum(), isValidCType(), isValidHandle(), isValidSQLType(), CacheTableLoader::load(), CSqlOdbcError::printStr(), CSqlOdbcStmt::SQLAllocHandle(), CSqlOdbcEnv::SQLAllocHandle(), CSqlOdbcDbc::SQLAllocHandle(), CSqlOdbcStmt::SQLBindCol(), SQLBindCol(), CSqlOdbcStmt::SQLBindParameter(), SQLBindParameter(), CSqlOdbcStmt::SQLCloseCursor(), SQLCloseCursor(), CSqlOdbcStmt::SQLColAttribute(), SQLColAttribute(), SQLColAttributes(), CSqlOdbcDbc::SQLConnect(), SQLConnect(), CSqlOdbcStmt::SQLDescribeCol(), SQLDescribeCol(), CSqlOdbcStmt::SQLDescribeParam(), SQLDescribeParam(), CSqlOdbcDbc::SQLDisconnect(), SQLDisconnect(), SQLDriverConnect(), CSqlOdbcEnv::SQLEndTran(), CSqlOdbcDbc::SQLEndTran(), SQLEndTran(), SQLError(), CSqlOdbcStmt::SQLExecDirect(), SQLExecDirect(), CSqlOdbcStmt::SQLExecute(), SQLExecute(), CSqlOdbcStmt::SQLFetch(), SQLFetch(), CSqlOdbcStmt::SQLFreeHandle(), CSqlOdbcEnv::SQLFreeHandle(), CSqlOdbcDbc::SQLFreeHandle(), CSqlOdbcStmt::SQLFreeStmt(), SQLFreeStmt(), CSqlOdbcDbc::SQLGetConnectAttr(), SQLGetConnectAttr(), CSqlOdbcStmt::SQLGetCursorName(), SQLGetCursorName(), CSqlOdbcError::SQLGetDiagRec(), SQLGetDiagRec(), CSqlOdbcEnv::SQLGetEnvAttr(), SQLGetEnvAttr(), CSqlOdbcStmt::SQLNumParams(), SQLNumParams(), CSqlOdbcStmt::SQLNumResultCols(), SQLNumResultCols(), CSqlOdbcStmt::SQLPrepare(), SQLPrepare(), CSqlOdbcStmt::SQLRowCount(), SQLRowCount(), CSqlOdbcDbc::SQLSetConnectAttr(), SQLSetConnectAttr(), CSqlOdbcStmt::SQLSetCursorName(), SQLSetCursorName(), CSqlOdbcEnv::SQLSetEnvAttr(), SQLSetEnvAttr(), CSqlOdbcStmt::SQLSetStmtAttr(), and SQLTransact().

#define SQL_SUCCESS_WITH_INFO   1

Definition at line 32 of file sql.h.

Referenced by CSqlOdbcStmt::SQLColAttribute(), CSqlOdbcStmt::SQLDescribeCol(), CSqlOdbcStmt::SQLFetch(), and CSqlOdbcStmt::SQLGetCursorName().

#define SQL_TC_ALL   2

Definition at line 551 of file sql.h.

#define SQL_TC_DDL_COMMIT   3

Definition at line 552 of file sql.h.

#define SQL_TC_DDL_IGNORE   4

Definition at line 553 of file sql.h.

#define SQL_TC_DML   1

Definition at line 550 of file sql.h.

#define SQL_TC_NONE   0

Definition at line 549 of file sql.h.

#define SQL_TIME_LEN   8

Definition at line 54 of file sql.h.

#define SQL_TIMESTAMP_LEN   19

Definition at line 55 of file sql.h.

#define SQL_TRANSACTION_CAPABLE   SQL_TXN_CAPABLE

Definition at line 425 of file sql.h.

#define SQL_TRANSACTION_ISOLATION_OPTION   SQL_TXN_ISOLATION_OPTION

Definition at line 428 of file sql.h.

#define SQL_TRANSACTION_READ_COMMITTED   SQL_TXN_READ_COMMITTED

Definition at line 559 of file sql.h.

#define SQL_TRANSACTION_READ_UNCOMMITTED   SQL_TXN_READ_UNCOMMITTED

Definition at line 557 of file sql.h.

#define SQL_TRANSACTION_REPEATABLE_READ   SQL_TXN_REPEATABLE_READ

Definition at line 561 of file sql.h.

#define SQL_TRANSACTION_SERIALIZABLE   SQL_TXN_SERIALIZABLE

Definition at line 563 of file sql.h.

#define SQL_TRUE   1

Definition at line 215 of file sql.h.

Referenced by CSqlOdbcStmt::SQLColAttribute(), CSqlOdbcEnv::SQLGetEnvAttr(), and CSqlOdbcEnv::SQLSetEnvAttr().

#define SQL_TXN_CAPABLE   46

Definition at line 424 of file sql.h.

#define SQL_TXN_ISOLATION_OPTION   72

Definition at line 427 of file sql.h.

#define SQL_TXN_READ_COMMITTED   0x00000002L

Definition at line 558 of file sql.h.

Referenced by SqlOdbcConnection::beginTrans(), CSqlOdbcDbc::SQLGetConnectAttr(), and CSqlOdbcDbc::SQLSetConnectAttr().

#define SQL_TXN_READ_UNCOMMITTED   0x00000001L

Definition at line 556 of file sql.h.

Referenced by SqlOdbcConnection::beginTrans(), CSqlOdbcDbc::SQLGetConnectAttr(), and CSqlOdbcDbc::SQLSetConnectAttr().

#define SQL_TXN_REPEATABLE_READ   0x00000004L

Definition at line 560 of file sql.h.

Referenced by SqlOdbcConnection::beginTrans(), CSqlOdbcDbc::SQLGetConnectAttr(), and CSqlOdbcDbc::SQLSetConnectAttr().

#define SQL_TXN_SERIALIZABLE   0x00000008L

Definition at line 562 of file sql.h.

#define SQL_TYPE_DATE   91

Definition at line 178 of file sql.h.

Referenced by AllDataType::convertFromSQLType(), AllDataType::convertToSQLType(), getSQLTypeName(), and isValidSQLType().

#define SQL_TYPE_TIME   92

Definition at line 179 of file sql.h.

Referenced by AllDataType::convertFromSQLType(), AllDataType::convertToSQLType(), getSQLTypeName(), and isValidSQLType().

#define SQL_TYPE_TIMESTAMP   93

Definition at line 180 of file sql.h.

Referenced by AllDataType::convertFromSQLType(), AllDataType::convertToSQLType(), getSQLTypeName(), and isValidSQLType().

#define SQL_UNBIND   2

Definition at line 251 of file sql.h.

Referenced by CSqlOdbcStmt::resetStmt(), and CSqlOdbcStmt::SQLFreeStmt().

#define SQL_UNKNOWN_TYPE   0

Definition at line 162 of file sql.h.

#define SQL_UNNAMED   1

Definition at line 239 of file sql.h.

#define SQL_UNSPECIFIED   0

Definition at line 185 of file sql.h.

#define SQL_USER_NAME   47

Definition at line 426 of file sql.h.

#define SQL_VARCHAR   12

Definition at line 174 of file sql.h.

Referenced by AllDataType::convertFromSQLType(), getSQLTypeName(), isValidSQLType(), and CSqlOdbcStmt::SQLColAttribute().

#define SQL_XOPEN_CLI_YEAR   10000

Definition at line 460 of file sql.h.


Function Documentation

SQLRETURN SQL_API SQLAllocConnect ( SQLHENV  EnvironmentHandle,
SQLHDBC ConnectionHandle 
)

Definition at line 26 of file odbcDbc.cxx.

References CSqlOdbcDbc::SQLAllocHandle().

00029 {
00030     return( CSqlOdbcDbc::SQLAllocHandle( EnvironmentHandle, ConnectionHandle ) );
00031 }

Here is the call graph for this function:

SQLRETURN SQL_API SQLAllocEnv ( SQLHENV EnvironmentHandle  ) 

Definition at line 23 of file odbcEnv.cxx.

References SQL_NULL_HANDLE, and CSqlOdbcEnv::SQLAllocHandle().

00025 {
00026     return( CSqlOdbcEnv::SQLAllocHandle( (SQLHANDLE) SQL_NULL_HANDLE, EnvironmentHandle ) );
00027 }

Here is the call graph for this function:

SQLRETURN SQL_API SQLAllocHandle ( SQLSMALLINT  HandleType,
SQLHANDLE  InputHandle,
SQLHANDLE OutputHandle 
)

Definition at line 3 of file odbcCommon.cxx.

References ERROR_OPTRANGE, globalError, CSqlOdbcError::printStr(), CSqlOdbcError::set(), SQL_ERROR, SQL_HANDLE_DBC, SQL_HANDLE_ENV, SQL_HANDLE_STMT, SQL_OV_ODBC3, CSqlOdbcEnv::SQLAllocHandle(), CSqlOdbcDbc::SQLAllocHandle(), and CSqlOdbcStmt::SQLAllocHandle().

Referenced by SqlOdbcConnection::connect(), SqlOdbcStatement::getPrimaryKeyFieldName(), CacheTableLoader::load(), and SqlOdbcStatement::prepare().

00006 {
00007     switch( hdlType )
00008     {
00009         case SQL_HANDLE_ENV: 
00010                 return CSqlOdbcEnv::SQLAllocHandle( inHdl, outHdl );
00011         case SQL_HANDLE_DBC: 
00012                 return CSqlOdbcDbc::SQLAllocHandle( inHdl, outHdl );
00013         case SQL_HANDLE_STMT: 
00014                 return CSqlOdbcStmt::SQLAllocHandle( inHdl, outHdl );
00015     }
00016 
00017     globalError.set( ERROR_OPTRANGE );
00018     globalError.printStr( SQL_OV_ODBC3 );
00019     return( SQL_ERROR );
00020 }

Here is the call graph for this function:

Here is the caller graph for this function:

SQLRETURN SQL_API SQLAllocStmt ( SQLHDBC  ConnectionHandle,
SQLHSTMT StatementHandle 
)

Definition at line 26 of file odbcStmt.cxx.

References CSqlOdbcStmt::SQLAllocHandle().

00029 {
00030     return( CSqlOdbcStmt::SQLAllocHandle( ConnectionHandle, StatementHandle ) );
00031 }

Here is the call graph for this function:

SQLRETURN SQL_API SQLBindCol ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  ColumnNumber,
SQLSMALLINT  TargetType,
SQLPOINTER  TargetValue,
SQLLEN  BufferLength,
SQLLEN *  StrLen_or_Ind 
)

Referenced by CacheTableLoader::load(), SqlOdbcStatement::prepare(), and SQLBindCol().

Here is the caller graph for this function:

SQLRETURN SQL_API SQLBindParam ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  ParameterNumber,
SQLSMALLINT  ValueType,
SQLSMALLINT  ParameterType,
SQLULEN  LengthPrecision,
SQLSMALLINT  ParameterScale,
SQLPOINTER  ParameterValue,
SQLLEN *  StrLen_or_Ind 
)

SQLRETURN SQL_API SQLCancel ( SQLHSTMT  StatementHandle  ) 

SQLRETURN SQL_API SQLCloseCursor ( SQLHSTMT  StatementHandle  ) 

Definition at line 878 of file odbcStmt.cxx.

References isValidHandle(), SQL_HANDLE_STMT, SQL_INVALID_HANDLE, SQL_SUCCESS, and SQLCloseCursor().

Referenced by SqlOdbcStatement::close(), CacheTableLoader::load(), and SQLCloseCursor().

00879 {
00880     // Is Stmt valid ?
00881     if( isValidHandle( (CSqlOdbcStmt*) StatementHandle, SQL_HANDLE_STMT ) != SQL_SUCCESS )
00882         return( SQL_INVALID_HANDLE );
00883 
00884     return( ((CSqlOdbcStmt*) StatementHandle)->SQLCloseCursor() );
00885 }

Here is the call graph for this function:

Here is the caller graph for this function:

SQLRETURN SQL_API SQLColAttribute ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  ColumnNumber,
SQLUSMALLINT  FieldIdentifier,
SQLPOINTER  CharacterAttribute,
SQLSMALLINT  BufferLength,
SQLSMALLINT StringLength,
SQLLEN *  NumericAttribute 
)

Referenced by SQLColAttribute(), and SQLColAttributes().

Here is the caller graph for this function:

SQLRETURN SQL_API SQLColumns ( SQLHSTMT  StatementHandle,
SQLCHAR CatalogName,
SQLSMALLINT  NameLength1,
SQLCHAR SchemaName,
SQLSMALLINT  NameLength2,
SQLCHAR TableName,
SQLSMALLINT  NameLength3,
SQLCHAR ColumnName,
SQLSMALLINT  NameLength4 
)

SQLRETURN SQL_API SQLConnect ( SQLHDBC  ConnectionHandle,
SQLCHAR ServerName,
SQLSMALLINT  NameLength1,
SQLCHAR UserName,
SQLSMALLINT  NameLength2,
SQLCHAR Authentication,
SQLSMALLINT  NameLength3 
)

Definition at line 130 of file odbcDbc.cxx.

References isValidHandle(), SQL_HANDLE_DBC, SQL_INVALID_HANDLE, SQL_SUCCESS, and SQLConnect().

Referenced by SQLConnect(), and SQLDriverConnect().

00138 {
00139     // Validate handle
00140     if( isValidHandle( ConnectionHandle, SQL_HANDLE_DBC ) != SQL_SUCCESS )
00141         return( SQL_INVALID_HANDLE );
00142 
00143     return( ((CSqlOdbcDbc*) ConnectionHandle)->SQLConnect( ServerName, NameLength1, 
00144         UserName, NameLength2, Authentication, NameLength3) );
00145 }

Here is the call graph for this function:

Here is the caller graph for this function:

SQLRETURN SQL_API SQLCopyDesc ( SQLHDESC  SourceDescHandle,
SQLHDESC  TargetDescHandle 
)

SQLRETURN SQL_API SQLDataSources ( SQLHENV  EnvironmentHandle,
SQLUSMALLINT  Direction,
SQLCHAR ServerName,
SQLSMALLINT  BufferLength1,
SQLSMALLINT NameLength1,
SQLCHAR Description,
SQLSMALLINT  BufferLength2,
SQLSMALLINT NameLength2 
)

SQLRETURN SQL_API SQLDescribeCol ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  ColumnNumber,
SQLCHAR ColumnName,
SQLSMALLINT  BufferLength,
SQLSMALLINT NameLength,
SQLSMALLINT DataType,
SQLULEN *  ColumnSize,
SQLSMALLINT DecimalDigits,
SQLSMALLINT Nullable 
)

Referenced by CacheTableLoader::load(), SqlOdbcStatement::prepare(), and SQLDescribeCol().

Here is the caller graph for this function:

SQLRETURN SQL_API SQLDisconnect ( SQLHDBC  ConnectionHandle  ) 

Definition at line 208 of file odbcDbc.cxx.

References isValidHandle(), SQL_HANDLE_DBC, SQL_INVALID_HANDLE, and SQL_SUCCESS.

Referenced by SqlOdbcConnection::disconnect(), and CacheTableLoader::load().

00210 {
00211     // Validate Handle
00212     if( isValidHandle( ConnectionHandle, SQL_HANDLE_DBC ) != SQL_SUCCESS )
00213         return( SQL_INVALID_HANDLE );
00214     SQLRETURN ret = ( ((CSqlOdbcDbc*) ConnectionHandle)->SQLDisconnect() );
00215     return ret;
00216 }

Here is the call graph for this function:

Here is the caller graph for this function:

SQLRETURN SQL_API SQLEndTran ( SQLSMALLINT  HandleType,
SQLHANDLE  Handle,
SQLSMALLINT  CompletionType 
)

Definition at line 38 of file odbcCommon.cxx.

References ERROR_OPTRANGE, globalError, isValidHandle(), CSqlOdbcError::printStr(), CSqlOdbcError::set(), SQL_ERROR, SQL_HANDLE_DBC, SQL_HANDLE_ENV, SQL_INVALID_HANDLE, SQL_OV_ODBC3, and SQL_SUCCESS.

Referenced by SQLTransact().

00042 {
00043     if( isValidHandle( hdl, hdlType ) != SQL_SUCCESS )
00044         return( SQL_INVALID_HANDLE );
00045 
00046     switch( hdlType )
00047     {
00048         case SQL_HANDLE_ENV:
00049                 return ((CSqlOdbcEnv*) hdl)->SQLEndTran( compType );
00050         case SQL_HANDLE_DBC:
00051                 return ((CSqlOdbcDbc*) hdl)->SQLEndTran( compType );
00052     }
00053 
00054     globalError.set( ERROR_OPTRANGE );
00055     globalError.printStr( SQL_OV_ODBC3 );
00056     return( SQL_ERROR );
00057 }

Here is the call graph for this function:

Here is the caller graph for this function:

SQLRETURN SQL_API SQLError ( SQLHENV  EnvironmentHandle,
SQLHDBC  ConnectionHandle,
SQLHSTMT  StatementHandle,
SQLCHAR Sqlstate,
SQLINTEGER NativeError,
SQLCHAR MessageText,
SQLSMALLINT  BufferLength,
SQLSMALLINT TextLength 
)

Definition at line 57 of file odbcError.cxx.

References isValidHandle(), SQL_HANDLE_DBC, SQL_HANDLE_ENV, SQL_HANDLE_STMT, SQL_INVALID_HANDLE, and SQL_SUCCESS.

00066 {
00067     // Call SQLGetDiagRec() on handle whichever is valid.
00068     if( isValidHandle( EnvironmentHandle, SQL_HANDLE_ENV ) == SQL_SUCCESS )
00069         return( ((CSqlOdbcEnv*)EnvironmentHandle)->err_.SQLGetDiagRec(EnvironmentHandle, Sqlstate, NativeError, MessageText, BufferLength, TextLength) );
00070 
00071     if( isValidHandle( ConnectionHandle, SQL_HANDLE_DBC ) == SQL_SUCCESS )
00072         return( ((CSqlOdbcDbc*)ConnectionHandle)->err_.SQLGetDiagRec(ConnectionHandle, Sqlstate, NativeError, MessageText, BufferLength, TextLength) );
00073 
00074     if( isValidHandle( StatementHandle, SQL_HANDLE_STMT ) == SQL_SUCCESS )
00075         return( ((CSqlOdbcStmt*)StatementHandle)->err_.SQLGetDiagRec(StatementHandle, Sqlstate, NativeError, MessageText, BufferLength, TextLength) );
00076 
00077     return( SQL_INVALID_HANDLE );
00078 } 

Here is the call graph for this function:

SQLRETURN SQL_API SQLExecDirect ( SQLHSTMT  StatementHandle,
SQLCHAR StatementText,
SQLINTEGER  TextLength 
)

Definition at line 687 of file odbcStmt.cxx.

References isValidHandle(), SQL_HANDLE_STMT, SQL_INVALID_HANDLE, SQL_SUCCESS, and SQLExecDirect().

Referenced by SQLExecDirect().

00691 {
00692     // Is Stmt valid ?
00693     if( isValidHandle( (CSqlOdbcStmt*) StatementHandle, SQL_HANDLE_STMT ) != SQL_SUCCESS )
00694         return( SQL_INVALID_HANDLE );
00695 
00696     return( ((CSqlOdbcStmt*) StatementHandle)->SQLExecDirect( StatementText, TextLength ) );
00697 }

Here is the call graph for this function:

Here is the caller graph for this function:

SQLRETURN SQL_API SQLExecute ( SQLHSTMT  StatementHandle  ) 

Definition at line 540 of file odbcStmt.cxx.

References isValidHandle(), SQL_HANDLE_STMT, SQL_INVALID_HANDLE, SQL_SUCCESS, and SQLExecute().

Referenced by SqlOdbcStatement::execute(), CacheTableLoader::load(), and SQLExecute().

00541 {
00542     // Is Stmt valid ?
00543     if( isValidHandle( (CSqlOdbcStmt*) StatementHandle, SQL_HANDLE_STMT ) != SQL_SUCCESS )
00544         return( SQL_INVALID_HANDLE );
00545 
00546     return( ((CSqlOdbcStmt*) StatementHandle)->SQLExecute() );
00547 }

Here is the call graph for this function:

Here is the caller graph for this function:

SQLRETURN SQL_API SQLFetch ( SQLHSTMT  StatementHandle  ) 

Definition at line 767 of file odbcStmt.cxx.

References isValidHandle(), SQL_HANDLE_STMT, SQL_INVALID_HANDLE, SQL_SUCCESS, and SQLFetch().

Referenced by SqlOdbcStatement::fetch(), SqlOdbcStatement::fetchAndPrint(), SqlOdbcStatement::getPrimaryKeyFieldName(), CacheTableLoader::load(), and SQLFetch().

00768 {
00769     // Is Stmt valid ?
00770     if( isValidHandle( (CSqlOdbcStmt*) StatementHandle, SQL_HANDLE_STMT ) != SQL_SUCCESS )
00771         return( SQL_INVALID_HANDLE );
00772 
00773     return( ((CSqlOdbcStmt*) StatementHandle)->SQLFetch() );
00774 }

Here is the call graph for this function:

Here is the caller graph for this function:

SQLRETURN SQL_API SQLFetchScroll ( SQLHSTMT  StatementHandle,
SQLSMALLINT  FetchOrientation,
SQLROWOFFSET  FetchOffset 
)

SQLRETURN SQL_API SQLFreeConnect ( SQLHDBC  ConnectionHandle  ) 

Definition at line 69 of file odbcDbc.cxx.

References CSqlOdbcDbc::SQLFreeHandle().

00071 {
00072     return( CSqlOdbcDbc::SQLFreeHandle( ConnectionHandle ) );
00073 }

Here is the call graph for this function:

SQLRETURN SQL_API SQLFreeEnv ( SQLHENV  EnvironmentHandle  ) 

Definition at line 53 of file odbcEnv.cxx.

References CSqlOdbcEnv::SQLFreeHandle().

00055 {
00056     return( CSqlOdbcEnv::SQLFreeHandle( EnvironmentHandle ) );
00057 }

Here is the call graph for this function:

SQLRETURN SQL_API SQLFreeHandle ( SQLSMALLINT  HandleType,
SQLHANDLE  Handle 
)

Definition at line 22 of file odbcCommon.cxx.

References ERROR_OPTRANGE, globalError, CSqlOdbcError::printStr(), CSqlOdbcError::set(), SQL_ERROR, SQL_HANDLE_DBC, SQL_HANDLE_ENV, SQL_HANDLE_STMT, SQL_OV_ODBC3, CSqlOdbcEnv::SQLFreeHandle(), CSqlOdbcDbc::SQLFreeHandle(), and CSqlOdbcStmt::SQLFreeHandle().

Referenced by SqlOdbcConnection::disconnect(), SqlOdbcStatement::free(), SqlOdbcStatement::getPrimaryKeyFieldName(), and CacheTableLoader::load().

00025 {
00026     switch( hdlType )
00027     {
00028         case SQL_HANDLE_ENV: return CSqlOdbcEnv::SQLFreeHandle( inHdl );
00029         case SQL_HANDLE_DBC: return CSqlOdbcDbc::SQLFreeHandle( inHdl );
00030         case SQL_HANDLE_STMT: return CSqlOdbcStmt::SQLFreeHandle( inHdl );
00031     }
00032 
00033     globalError.set( ERROR_OPTRANGE );
00034     globalError.printStr( SQL_OV_ODBC3 );
00035     return( SQL_ERROR );
00036 }

Here is the call graph for this function:

Here is the caller graph for this function:

SQLRETURN SQL_API SQLFreeStmt ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  Option 
)

Definition at line 111 of file odbcStmt.cxx.

References isValidHandle(), SQL_DROP, SQL_HANDLE_STMT, SQL_INVALID_HANDLE, SQL_SUCCESS, CSqlOdbcStmt::SQLFreeHandle(), and SQLFreeStmt().

Referenced by SQLFreeStmt().

00114 {
00115     // Is Stmt valid ?
00116     if( isValidHandle( (CSqlOdbcStmt*) StatementHandle, SQL_HANDLE_STMT ) != SQL_SUCCESS )
00117         return( SQL_INVALID_HANDLE );
00118 
00119     // Free Handle
00120     if( Option == SQL_DROP )
00121         return( CSqlOdbcStmt::SQLFreeHandle( StatementHandle ) );
00122 
00123     return( ((CSqlOdbcStmt*) StatementHandle)->SQLFreeStmt( Option ) );
00124 }

Here is the call graph for this function:

Here is the caller graph for this function:

SQLRETURN SQL_API SQLGetConnectAttr ( SQLHDBC  ConnectionHandle,
SQLINTEGER  Attribute,
SQLPOINTER  Value,
SQLINTEGER  BufferLength,
SQLINTEGER StringLength 
)

Definition at line 389 of file odbcDbc.cxx.

References isValidHandle(), SQL_HANDLE_DBC, SQL_INVALID_HANDLE, SQL_SUCCESS, and SQLGetConnectAttr().

Referenced by SQLGetConnectAttr(), and SQLGetConnectOption().

00395 {
00396    // Validate handle
00397    if( isValidHandle( ConnectionHandle, SQL_HANDLE_DBC ) != SQL_SUCCESS )
00398         return( SQL_INVALID_HANDLE );
00399 
00400    return( ((CSqlOdbcDbc*)ConnectionHandle)->SQLGetConnectAttr( Attribute, Value, BufferLength, StringLength ) );
00401 }

Here is the call graph for this function:

Here is the caller graph for this function:

SQLRETURN SQL_API SQLGetConnectOption ( SQLHDBC  ConnectionHandle,
SQLUSMALLINT  Option,
SQLPOINTER  Value 
)

Definition at line 381 of file odbcDbc.cxx.

References SQLGetConnectAttr().

00385 {
00386     return( SQLGetConnectAttr( ConnectionHandle, Option, Value, 0, 0) );
00387 }

Here is the call graph for this function:

SQLRETURN SQL_API SQLGetCursorName ( SQLHSTMT  StatementHandle,
SQLCHAR CursorName,
SQLSMALLINT  BufferLength,
SQLSMALLINT NameLength 
)

Definition at line 962 of file odbcStmt.cxx.

References isValidHandle(), SQL_HANDLE_STMT, SQL_INVALID_HANDLE, SQL_SUCCESS, and SQLGetCursorName().

Referenced by SQLGetCursorName().

00967 {
00968     // Is Stmt valid ?
00969     if( isValidHandle( (CSqlOdbcStmt*) StatementHandle, SQL_HANDLE_STMT ) != SQL_SUCCESS )
00970         return( SQL_INVALID_HANDLE );
00971 
00972     return( ((CSqlOdbcStmt*) StatementHandle)->SQLGetCursorName( CursorName, BufferLength, NameLength ) );
00973 }

Here is the call graph for this function:

Here is the caller graph for this function:

SQLRETURN SQL_API SQLGetData ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  ColumnNumber,
SQLSMALLINT  TargetType,
SQLPOINTER  TargetValue,
SQLLEN  BufferLength,
SQLLEN *  StrLen_or_Ind 
)

Referenced by SqlOdbcStatement::getPrimaryKeyFieldName().

Here is the caller graph for this function:

SQLRETURN SQLGetDescField ( SQLHDESC  DescriptorHandle,
SQLSMALLINT  RecNumber,
SQLSMALLINT  FieldIdentifier,
SQLPOINTER  Value,
SQLINTEGER  BufferLength,
SQLINTEGER StringLength 
)

SQLRETURN SQL_API SQLGetDescRec ( SQLHDESC  DescriptorHandle,
SQLSMALLINT  RecNumber,
SQLCHAR Name,
SQLSMALLINT  BufferLength,
SQLSMALLINT StringLength,
SQLSMALLINT Type,
SQLSMALLINT SubType,
SQLLEN *  Length,
SQLSMALLINT Precision,
SQLSMALLINT Scale,
SQLSMALLINT Nullable 
)

SQLRETURN SQL_API SQLGetDiagField ( SQLSMALLINT  HandleType,
SQLHANDLE  Handle,
SQLSMALLINT  RecNumber,
SQLSMALLINT  DiagIdentifier,
SQLPOINTER  DiagInfo,
SQLSMALLINT  BufferLength,
SQLSMALLINT StringLength 
)

SQLRETURN SQL_API SQLGetDiagRec ( SQLSMALLINT  HandleType,
SQLHANDLE  Handle,
SQLSMALLINT  RecNumber,
SQLCHAR Sqlstate,
SQLINTEGER NativeError,
SQLCHAR MessageText,
SQLSMALLINT  BufferLength,
SQLSMALLINT TextLength 
)

Definition at line 81 of file odbcError.cxx.

References isValidHandle(), SQL_ERROR, and SQL_SUCCESS.

Referenced by SqlOdbcConnection::connect().

00090 {
00091     // Validate handle
00092     if( isValidHandle( Handle, HandleType ) != SQL_SUCCESS )
00093         return( SQL_ERROR );
00094 
00095     return( ((CSqlOdbcEnv*)Handle)->err_.SQLGetDiagRec(Handle, Sqlstate, NativeError, MessageText, BufferLength, TextLength) );
00096 }

Here is the call graph for this function:

Here is the caller graph for this function:

SQLRETURN SQL_API SQLGetEnvAttr ( SQLHENV  EnvironmentHandle,
SQLINTEGER  Attribute,
SQLPOINTER  Value,
SQLINTEGER  BufferLength,
SQLINTEGER StringLength 
)

Definition at line 183 of file odbcEnv.cxx.

References isValidHandle(), SQL_HANDLE_ENV, SQL_INVALID_HANDLE, SQL_SUCCESS, and SQLGetEnvAttr().

Referenced by SQLGetEnvAttr().

00189 {
00190    // Validate handle
00191    if( isValidHandle( EnvironmentHandle, SQL_HANDLE_ENV ) != SQL_SUCCESS )
00192         return( SQL_INVALID_HANDLE );
00193 
00194    return( ((CSqlOdbcEnv*)EnvironmentHandle)->SQLGetEnvAttr( Attribute, Value, BufferLength, StringLength ) );
00195 }

Here is the call graph for this function:

Here is the caller graph for this function:

SQLRETURN SQL_API SQLGetFunctions ( SQLHDBC  ConnectionHandle,
SQLUSMALLINT  FunctionId,
SQLUSMALLINT Supported 
)

SQLRETURN SQL_API SQLGetInfo ( SQLHDBC  ConnectionHandle,
SQLUSMALLINT  InfoType,
SQLPOINTER  InfoValue,
SQLSMALLINT  BufferLength,
SQLSMALLINT StringLength 
)

SQLRETURN SQL_API SQLGetStmtAttr ( SQLHSTMT  StatementHandle,
SQLINTEGER  Attribute,
SQLPOINTER  Value,
SQLINTEGER  BufferLength,
SQLINTEGER StringLength 
)

SQLRETURN SQL_API SQLGetStmtOption ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  Option,
SQLPOINTER  Value 
)

SQLRETURN SQL_API SQLGetTypeInfo ( SQLHSTMT  StatementHandle,
SQLSMALLINT  DataType 
)

SQLRETURN SQL_API SQLNumResultCols ( SQLHSTMT  StatementHandle,
SQLSMALLINT ColumnCount 
)

Definition at line 1005 of file odbcStmt.cxx.

References isValidHandle(), SQL_HANDLE_STMT, SQL_INVALID_HANDLE, SQL_SUCCESS, and SQLNumResultCols().

Referenced by CacheTableLoader::load(), SqlOdbcStatement::prepare(), and SQLNumResultCols().

01008 {
01009     // Is Stmt valid ?
01010     if( isValidHandle( (CSqlOdbcStmt*) StatementHandle, SQL_HANDLE_STMT ) != SQL_SUCCESS )
01011         return( SQL_INVALID_HANDLE );
01012 
01013     return( ((CSqlOdbcStmt*) StatementHandle)->SQLNumResultCols( ColumnCount ) );
01014 }

Here is the call graph for this function:

Here is the caller graph for this function:

SQLRETURN SQL_API SQLParamData ( SQLHSTMT  StatementHandle,
SQLPOINTER Value 
)

SQLRETURN SQL_API SQLPrepare ( SQLHSTMT  StatementHandle,
SQLCHAR StatementText,
SQLINTEGER  TextLength 
)

Definition at line 457 of file odbcStmt.cxx.

References isValidHandle(), SQL_HANDLE_STMT, SQL_INVALID_HANDLE, SQL_SUCCESS, and SQLPrepare().

Referenced by CacheTableLoader::load(), SqlOdbcStatement::prepare(), and SQLPrepare().

00461 {
00462     // Is Stmt valid ?
00463     if( isValidHandle( (CSqlOdbcStmt*) StatementHandle, SQL_HANDLE_STMT ) != SQL_SUCCESS )
00464         return( SQL_INVALID_HANDLE );
00465 
00466     // Prepare
00467     return( ((CSqlOdbcStmt*) StatementHandle)->SQLPrepare( StatementText, TextLength ) );
00468 }

Here is the call graph for this function:

Here is the caller graph for this function:

SQLRETURN SQL_API SQLPutData ( SQLHSTMT  StatementHandle,
SQLPOINTER  Data,
SQLLEN  StrLen_or_Ind 
)

SQLRETURN SQL_API SQLRowCount ( SQLHSTMT  StatementHandle,
SQLLEN *  RowCount 
)

Referenced by SQLRowCount().

Here is the caller graph for this function:

SQLRETURN SQL_API SQLSetConnectAttr ( SQLHDBC  ConnectionHandle,
SQLINTEGER  Attribute,
SQLPOINTER  Value,
SQLINTEGER  StringLength 
)

Definition at line 320 of file odbcDbc.cxx.

References isValidHandle(), SQL_HANDLE_DBC, SQL_INVALID_HANDLE, SQL_SUCCESS, and SQLSetConnectAttr().

Referenced by SqlOdbcConnection::beginTrans(), SqlOdbcConnection::connect(), SQLSetConnectAttr(), and SQLSetConnectOption().

00325 {
00326    // Validate handle
00327    if( isValidHandle( ConnectionHandle, SQL_HANDLE_DBC ) != SQL_SUCCESS )
00328         return( SQL_INVALID_HANDLE );
00329 
00330    return( ((CSqlOdbcDbc*)ConnectionHandle)->SQLSetConnectAttr( Attribute, Value, StringLength ) );
00331 }

Here is the call graph for this function:

Here is the caller graph for this function:

SQLRETURN SQL_API SQLSetConnectOption ( SQLHDBC  ConnectionHandle,
SQLUSMALLINT  Option,
SQLULEN  Value 
)

SQLRETURN SQL_API SQLSetCursorName ( SQLHSTMT  StatementHandle,
SQLCHAR CursorName,
SQLSMALLINT  NameLength 
)

Definition at line 902 of file odbcStmt.cxx.

References isValidHandle(), SQL_HANDLE_STMT, SQL_INVALID_HANDLE, SQL_SUCCESS, and SQLSetCursorName().

Referenced by SQLSetCursorName().

00906 {
00907     // Is Stmt valid ?
00908     if( isValidHandle( (CSqlOdbcStmt*) StatementHandle, SQL_HANDLE_STMT ) != SQL_SUCCESS )
00909         return( SQL_INVALID_HANDLE );
00910 
00911     return( ((CSqlOdbcStmt*) StatementHandle)->SQLSetCursorName( CursorName, NameLength ) );
00912 }

Here is the call graph for this function:

Here is the caller graph for this function:

SQLRETURN SQL_API SQLSetDescField ( SQLHDESC  DescriptorHandle,
SQLSMALLINT  RecNumber,
SQLSMALLINT  FieldIdentifier,
SQLPOINTER  Value,
SQLINTEGER  BufferLength 
)

SQLRETURN SQL_API SQLSetDescRec ( SQLHDESC  DescriptorHandle,
SQLSMALLINT  RecNumber,
SQLSMALLINT  Type,
SQLSMALLINT  SubType,
SQLLEN  Length,
SQLSMALLINT  Precision,
SQLSMALLINT  Scale,
SQLPOINTER  Data,
SQLLEN *  StringLength,
SQLLEN *  Indicator 
)

SQLRETURN SQL_API SQLSetEnvAttr ( SQLHENV  EnvironmentHandle,
SQLINTEGER  Attribute,
SQLPOINTER  Value,
SQLINTEGER  StringLength 
)

Definition at line 127 of file odbcEnv.cxx.

References isValidHandle(), SQL_HANDLE_ENV, SQL_INVALID_HANDLE, SQL_SUCCESS, and SQLSetEnvAttr().

Referenced by SqlOdbcConnection::connect(), CacheTableLoader::load(), and SQLSetEnvAttr().

00132 {
00133    // Validate handle
00134    if( isValidHandle( inputEnv, SQL_HANDLE_ENV ) != SQL_SUCCESS )
00135         return( SQL_INVALID_HANDLE );
00136 
00137    return( ((CSqlOdbcEnv*)inputEnv)->SQLSetEnvAttr( Attribute, Value, StringLength ) );
00138 }

Here is the call graph for this function:

Here is the caller graph for this function:

SQLRETURN SQL_API SQLSetParam ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  ParameterNumber,
SQLSMALLINT  ValueType,
SQLSMALLINT  ParameterType,
SQLULEN  LengthPrecision,
SQLSMALLINT  ParameterScale,
SQLPOINTER  ParameterValue,
SQLLEN *  StrLen_or_Ind 
)

SQLRETURN SQL_API SQLSetStmtAttr ( SQLHSTMT  StatementHandle,
SQLINTEGER  Attribute,
SQLPOINTER  Value,
SQLINTEGER  StringLength 
)

Definition at line 730 of file odbcStmt.cxx.

References SQLSetStmtAttr().

Referenced by SQLSetStmtAttr(), and SQLSetStmtOption().

00733 {
00734     return (((CSqlOdbcStmt*)StatementHandle)->SQLSetStmtAttr(Attribute, Value,StringLength));
00735 }

Here is the call graph for this function:

Here is the caller graph for this function:

SQLRETURN SQL_API SQLSetStmtOption ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  Option,
SQLROWCOUNT  Value 
)

SQLRETURN SQL_API SQLSpecialColumns ( SQLHSTMT  StatementHandle,
SQLUSMALLINT  IdentifierType,
SQLCHAR CatalogName,
SQLSMALLINT  NameLength1,
SQLCHAR SchemaName,
SQLSMALLINT  NameLength2,
SQLCHAR TableName,
SQLSMALLINT  NameLength3,
SQLUSMALLINT  Scope,
SQLUSMALLINT  Nullable 
)

SQLRETURN SQL_API SQLStatistics ( SQLHSTMT  StatementHandle,
SQLCHAR CatalogName,
SQLSMALLINT  NameLength1,
SQLCHAR SchemaName,
SQLSMALLINT  NameLength2,
SQLCHAR TableName,
SQLSMALLINT  NameLength3,
SQLUSMALLINT  Unique,
SQLUSMALLINT  Reserved 
)

Referenced by CacheTableLoader::load().

Here is the caller graph for this function:

SQLRETURN SQL_API SQLTables ( SQLHSTMT  StatementHandle,
SQLCHAR CatalogName,
SQLSMALLINT  NameLength1,
SQLCHAR SchemaName,
SQLSMALLINT  NameLength2,
SQLCHAR TableName,
SQLSMALLINT  NameLength3,
SQLCHAR TableType,
SQLSMALLINT  NameLength4 
)

SQLRETURN SQL_API SQLTransact ( SQLHENV  EnvironmentHandle,
SQLHDBC  ConnectionHandle,
SQLUSMALLINT  CompletionType 
)

Definition at line 79 of file odbcEnv.cxx.

References isValidHandle(), SQL_HANDLE_DBC, SQL_HANDLE_ENV, SQL_INVALID_HANDLE, SQL_SUCCESS, and SQLEndTran().

Referenced by SqlOdbcConnection::beginTrans(), SqlOdbcConnection::commit(), and SqlOdbcConnection::rollback().

00083 {
00084     // Call SQLEndTrans() on handle whichever is valid 
00085     if( isValidHandle( EnvironmentHandle, SQL_HANDLE_ENV ) == SQL_SUCCESS )
00086         return( ((CSqlOdbcEnv*) EnvironmentHandle)->SQLEndTran( CompletionType ) );
00087 
00088     if( isValidHandle( ConnectionHandle, SQL_HANDLE_DBC ) == SQL_SUCCESS )
00089         return( ((CSqlOdbcDbc*) ConnectionHandle)->SQLEndTran( CompletionType ) );
00090 
00091     return( SQL_INVALID_HANDLE );
00092 }

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Mon Jun 9 22:39:07 2008 for csql by  doxygen 1.4.7