Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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

#define SQL_ATTR_ACCESS_MODE   SQL_ACCESS_MODE
#define SQL_ATTR_AUTOCOMMIT   SQL_AUTOCOMMIT
#define SQL_ATTR_CONNECTION_DEAD   1209
#define SQL_ATTR_CONNECTION_TIMEOUT   113
#define SQL_ATTR_CURRENT_CATALOG   SQL_CURRENT_QUALIFIER
#define SQL_ATTR_CURSOR_SCROLLABLE   -1
#define SQL_ATTR_DISCONNECT_BEHAVIOR   114
#define SQL_ATTR_ENLIST_IN_DTC   1207
#define SQL_ATTR_ENLIST_IN_XA   1208
#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_C_SBIGINT   (SQL_BIGINT+SQL_SIGNED_OFFSET) /* SIGNED BIGINT */
#define SQL_C_UBIGINT   (SQL_BIGINT+SQL_UNSIGNED_OFFSET) /* UNSIGNED BIGINT */
#define SQL_CD_FALSE   0L /* Connection is open/available */
#define SQL_CD_TRUE   1L /* Connection is closed/dead */
#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_TYPE   SQL_COLUMN_TYPE
#define SQL_DESC_UNSIGNED   SQL_COLUMN_UNSIGNED
#define SQL_FALSE   0
#define SQL_HANDLE_DBC   2
#define SQL_HANDLE_ENV   3
#define SQL_HANDLE_STMT   1
#define SQL_NO_DATA   SQL_NO_DATA_FOUND
#define SQL_NULL_HANDLE   0
#define SQL_SUCCEEDED (   rc)    (((rc)&(~1))==0)
#define SQL_TRUE   1
#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_ENV
Definition: apr_dbd_odbc_v2.h:30
#define SQL_HANDLE_STMT
Definition: apr_dbd_odbc_v2.h:28
#define SQLCloseCursor (   stmt)    SQLFreeStmt(stmt, SQL_CLOSE)
#define SQLColAttribute (   s,
  c,
  f,
  a,
  l,
  m,
 
)    SQLColAttributes(s, c, f, a, l, m, n)
#define SQLEndTran (   hType,
  hdbc,
  type 
)    SQLTransact(henv, hdbc, type)
#define SQLFetchScroll (   stmt,
  orient,
  rownum 
)    (0); return APR_ENOTIMPL;
#define SQLFreeHandle (   type,
  hndl 
)
Value:
( (type == SQL_HANDLE_STMT) ? SQLFreeStmt(hndl, SQL_DROP) \
: (type == SQL_HANDLE_ENV) ? SQLFreeEnv(hndl) \
: SQLFreeConnect(hndl) \
)
#define SQL_HANDLE_ENV
Definition: apr_dbd_odbc_v2.h:30
#define SQL_HANDLE_STMT
Definition: apr_dbd_odbc_v2.h:28
#define SQLGetConnectAttr (   hdbc,
  fOption,
  ValuePtr,
  BufferLength,
  NULL 
)    SQLGetConnectOption(hdbc, fOption, ValuePtr)
#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_ENV
Definition: apr_dbd_odbc_v2.h:30
#define SQL_HANDLE_DBC
Definition: apr_dbd_odbc_v2.h:29
#define SQL_HANDLE_STMT
Definition: apr_dbd_odbc_v2.h:28
#define SQLHANDLE   SQLHENV /* Presumes that ENV, DBC, and STMT handles are all the same datatype */
#define SQLSetConnectAttr (   hdbc,
  fOption,
  ValuePtr,
  BufferLength 
)    SQLSetConnectOption(hdbc, fOption, (SQLUINTEGER) ValuePtr)
#define SQLSetEnvAttr (   henv,
  Attribute,
  Value,
  StringLength 
)    (0)
#define SQLSetStmtAttr (   hstmt,
  fOption,
  ValuePtr,
  BufferLength 
)    (0); return APR_ENOTIMPL;