#include "odbcCommon.h"
Include dependency graph for odbcEnv.cxx:
Go to the source code of this file.
Functions | |
SQLRETURN | SQLAllocEnv (SQLHENV *EnvironmentHandle) |
SQLRETURN | SQLFreeEnv (SQLHENV EnvironmentHandle) |
SQLRETURN | SQLTransact (SQLHENV EnvironmentHandle, SQLHDBC ConnectionHandle, SQLUSMALLINT CompletionType) |
SQLRETURN | SQLSetEnvAttr (SQLHENV inputEnv, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER StringLength) |
SQLRETURN | SQLGetEnvAttr (SQLHENV EnvironmentHandle, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER BufferLength, SQLINTEGER *StringLength) |
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:
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 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 SQLSetEnvAttr | ( | SQLHENV | inputEnv, | |
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 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: