Apache2
apr_dbd_odbc_v2.h File Reference

Go to the source code of this file.

Macros

#define SQLHANDLE   SQLHENV /* Presumes that ENV, DBC, and STMT handles are all the same datatype */
 
#define SQL_NULL_HANDLE   0
 
#define SQL_HANDLE_STMT   1
 
#define SQL_HANDLE_DBC   2
 
#define SQL_HANDLE_ENV   3
 
#define SQL_NO_DATA   SQL_NO_DATA_FOUND
 
#define SQL_SUCCEEDED(rc)   (((rc)&(~1))==0)
 
#define SQLSetEnvAttr(henv, Attribute, Value, StringLength)   (0)
 
#define SQLAllocHandle(type, parent, hndl)
 
#define SQLFreeHandle(type, hndl)
 
#define SQLGetDiagRec(type, h, i, state, native, buffer, bufsize, reslen)
 
#define SQLCloseCursor(stmt)   SQLFreeStmt(stmt, SQL_CLOSE)
 
#define SQLGetConnectAttr(hdbc, fOption, ValuePtr, BufferLength, NULL)    SQLGetConnectOption(hdbc, fOption, ValuePtr)
 
#define SQLSetConnectAttr(hdbc, fOption, ValuePtr, BufferLength)    SQLSetConnectOption(hdbc, fOption, (SQLUINTEGER) ValuePtr)
 
#define SQLSetStmtAttr(hstmt, fOption, ValuePtr, BufferLength)   (0); return APR_ENOTIMPL;
 
#define SQLEndTran(hType, hdbc, type)   SQLTransact(henv, hdbc, type)
 
#define SQLFetchScroll(stmt, orient, rownum)   (0); return APR_ENOTIMPL;
 
#define SQL_DESC_TYPE   SQL_COLUMN_TYPE
 
#define SQL_DESC_CONCISE_TYPE   SQL_COLUMN_TYPE
 
#define SQL_DESC_DISPLAY_SIZE   SQL_COLUMN_DISPLAY_SIZE
 
#define SQL_DESC_OCTET_LENGTH   SQL_COLUMN_LENGTH
 
#define SQL_DESC_UNSIGNED   SQL_COLUMN_UNSIGNED
 
#define SQLColAttribute(s, c, f, a, l, m, n)   SQLColAttributes(s, c, f, a, l, m, n)
 
#define SQL_ATTR_ACCESS_MODE   SQL_ACCESS_MODE
 
#define SQL_ATTR_AUTOCOMMIT   SQL_AUTOCOMMIT
 
#define SQL_ATTR_CONNECTION_TIMEOUT   113
 
#define SQL_ATTR_CURRENT_CATALOG   SQL_CURRENT_QUALIFIER
 
#define SQL_ATTR_DISCONNECT_BEHAVIOR   114
 
#define SQL_ATTR_ENLIST_IN_DTC   1207
 
#define SQL_ATTR_ENLIST_IN_XA   1208
 
#define SQL_ATTR_CONNECTION_DEAD   1209
 
#define SQL_CD_TRUE   1L /* Connection is closed/dead */
 
#define SQL_CD_FALSE   0L /* Connection is open/available */
 
#define SQL_ATTR_LOGIN_TIMEOUT   SQL_LOGIN_TIMEOUT
 
#define SQL_ATTR_ODBC_CURSORS   SQL_ODBC_CURSORS
 
#define SQL_ATTR_PACKET_SIZE   SQL_PACKET_SIZE
 
#define SQL_ATTR_QUIET_MODE   SQL_QUIET_MODE
 
#define SQL_ATTR_TRACE   SQL_OPT_TRACE
 
#define SQL_ATTR_TRACEFILE   SQL_OPT_TRACEFILE
 
#define SQL_ATTR_TRANSLATE_LIB   SQL_TRANSLATE_DLL
 
#define SQL_ATTR_TRANSLATE_OPTION   SQL_TRANSLATE_OPTION
 
#define SQL_ATTR_TXN_ISOLATION   SQL_TXN_ISOLATION
 
#define SQL_ATTR_CURSOR_SCROLLABLE   -1
 
#define SQL_C_SBIGINT   (SQL_BIGINT+SQL_SIGNED_OFFSET) /* SIGNED BIGINT */
 
#define SQL_C_UBIGINT   (SQL_BIGINT+SQL_UNSIGNED_OFFSET) /* UNSIGNED BIGINT */
 
#define SQL_FALSE   0
 
#define SQL_TRUE   1
 

Macro Definition Documentation

◆ SQL_ATTR_ACCESS_MODE

#define SQL_ATTR_ACCESS_MODE   SQL_ACCESS_MODE

◆ SQL_ATTR_AUTOCOMMIT

#define SQL_ATTR_AUTOCOMMIT   SQL_AUTOCOMMIT

◆ SQL_ATTR_CONNECTION_DEAD

#define SQL_ATTR_CONNECTION_DEAD   1209

◆ SQL_ATTR_CONNECTION_TIMEOUT

#define SQL_ATTR_CONNECTION_TIMEOUT   113

◆ SQL_ATTR_CURRENT_CATALOG

#define SQL_ATTR_CURRENT_CATALOG   SQL_CURRENT_QUALIFIER

◆ SQL_ATTR_CURSOR_SCROLLABLE

#define SQL_ATTR_CURSOR_SCROLLABLE   -1

◆ SQL_ATTR_DISCONNECT_BEHAVIOR

#define SQL_ATTR_DISCONNECT_BEHAVIOR   114

◆ SQL_ATTR_ENLIST_IN_DTC

#define SQL_ATTR_ENLIST_IN_DTC   1207

◆ SQL_ATTR_ENLIST_IN_XA

#define SQL_ATTR_ENLIST_IN_XA   1208

◆ SQL_ATTR_LOGIN_TIMEOUT

#define SQL_ATTR_LOGIN_TIMEOUT   SQL_LOGIN_TIMEOUT

◆ SQL_ATTR_ODBC_CURSORS

#define SQL_ATTR_ODBC_CURSORS   SQL_ODBC_CURSORS

◆ SQL_ATTR_PACKET_SIZE

#define SQL_ATTR_PACKET_SIZE   SQL_PACKET_SIZE

◆ SQL_ATTR_QUIET_MODE

#define SQL_ATTR_QUIET_MODE   SQL_QUIET_MODE

◆ SQL_ATTR_TRACE

#define SQL_ATTR_TRACE   SQL_OPT_TRACE

◆ SQL_ATTR_TRACEFILE

#define SQL_ATTR_TRACEFILE   SQL_OPT_TRACEFILE

◆ SQL_ATTR_TRANSLATE_LIB

#define SQL_ATTR_TRANSLATE_LIB   SQL_TRANSLATE_DLL

◆ SQL_ATTR_TRANSLATE_OPTION

#define SQL_ATTR_TRANSLATE_OPTION   SQL_TRANSLATE_OPTION

◆ SQL_ATTR_TXN_ISOLATION

#define SQL_ATTR_TXN_ISOLATION   SQL_TXN_ISOLATION

◆ SQL_C_SBIGINT

#define SQL_C_SBIGINT   (SQL_BIGINT+SQL_SIGNED_OFFSET) /* SIGNED BIGINT */

◆ SQL_C_UBIGINT

#define SQL_C_UBIGINT   (SQL_BIGINT+SQL_UNSIGNED_OFFSET) /* UNSIGNED BIGINT */

◆ SQL_CD_FALSE

#define SQL_CD_FALSE   0L /* Connection is open/available */

◆ SQL_CD_TRUE

#define SQL_CD_TRUE   1L /* Connection is closed/dead */

◆ SQL_DESC_CONCISE_TYPE

#define SQL_DESC_CONCISE_TYPE   SQL_COLUMN_TYPE

◆ SQL_DESC_DISPLAY_SIZE

#define SQL_DESC_DISPLAY_SIZE   SQL_COLUMN_DISPLAY_SIZE

◆ SQL_DESC_OCTET_LENGTH

#define SQL_DESC_OCTET_LENGTH   SQL_COLUMN_LENGTH

◆ SQL_DESC_TYPE

#define SQL_DESC_TYPE   SQL_COLUMN_TYPE

◆ SQL_DESC_UNSIGNED

#define SQL_DESC_UNSIGNED   SQL_COLUMN_UNSIGNED

◆ SQL_FALSE

#define SQL_FALSE   0

◆ SQL_HANDLE_DBC

#define SQL_HANDLE_DBC   2

◆ SQL_HANDLE_ENV

#define SQL_HANDLE_ENV   3

◆ SQL_HANDLE_STMT

#define SQL_HANDLE_STMT   1

◆ SQL_NO_DATA

#define SQL_NO_DATA   SQL_NO_DATA_FOUND

◆ SQL_NULL_HANDLE

#define SQL_NULL_HANDLE   0

◆ SQL_SUCCEEDED

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

◆ SQL_TRUE

#define SQL_TRUE   1

◆ SQLAllocHandle

#define SQLAllocHandle (   type,
  parent,
  hndl 
)
Value:
( (type == SQL_HANDLE_STMT) ? SQLAllocStmt(parent, hndl) \
: (type == SQL_HANDLE_ENV) ? SQLAllocEnv(hndl) \
: SQLAllocConnect(parent, hndl) \
)
#define SQL_HANDLE_STMT
Definition: apr_dbd_odbc_v2.h:28
#define SQL_HANDLE_ENV
Definition: apr_dbd_odbc_v2.h:30

◆ SQLCloseCursor

#define SQLCloseCursor (   stmt)    SQLFreeStmt(stmt, SQL_CLOSE)

◆ SQLColAttribute

#define SQLColAttribute (   s,
  c,
  f,
  a,
  l,
  m,
 
)    SQLColAttributes(s, c, f, a, l, m, n)

◆ SQLEndTran

#define SQLEndTran (   hType,
  hdbc,
  type 
)    SQLTransact(henv, hdbc, type)

◆ SQLFetchScroll

#define SQLFetchScroll (   stmt,
  orient,
  rownum 
)    (0); return APR_ENOTIMPL;

◆ SQLFreeHandle

#define SQLFreeHandle (   type,
  hndl 
)
Value:
( (type == SQL_HANDLE_STMT) ? SQLFreeStmt(hndl, SQL_DROP) \
: (type == SQL_HANDLE_ENV) ? SQLFreeEnv(hndl) \
: SQLFreeConnect(hndl) \
)

◆ SQLGetConnectAttr

#define SQLGetConnectAttr (   hdbc,
  fOption,
  ValuePtr,
  BufferLength,
  NULL 
)     SQLGetConnectOption(hdbc, fOption, ValuePtr)

◆ SQLGetDiagRec

#define SQLGetDiagRec (   type,
  h,
  i,
  state,
  native,
  buffer,
  bufsize,
  reslen 
)
Value:
SQLError( (type == SQL_HANDLE_ENV) ? h : NULL, \
(type == SQL_HANDLE_DBC) ? h : NULL, \
(type == SQL_HANDLE_STMT) ? h : NULL, \
state, native, buffer, bufsize, reslen)
#define SQL_HANDLE_DBC
Definition: apr_dbd_odbc_v2.h:29

◆ SQLHANDLE

#define SQLHANDLE   SQLHENV /* Presumes that ENV, DBC, and STMT handles are all the same datatype */

◆ SQLSetConnectAttr

#define SQLSetConnectAttr (   hdbc,
  fOption,
  ValuePtr,
  BufferLength 
)     SQLSetConnectOption(hdbc, fOption, (SQLUINTEGER) ValuePtr)

◆ SQLSetEnvAttr

#define SQLSetEnvAttr (   henv,
  Attribute,
  Value,
  StringLength 
)    (0)

◆ SQLSetStmtAttr

#define SQLSetStmtAttr (   hstmt,
  fOption,
  ValuePtr,
  BufferLength 
)    (0); return APR_ENOTIMPL;