#include "odbcCommon.h"
Include dependency graph for odbcDbc.cxx:
Go to the source code of this file.
Functions | |
SQLRETURN | SQLAllocConnect (SQLHENV EnvironmentHandle, SQLHDBC *ConnectionHandle) |
SQLRETURN | SQLFreeConnect (SQLHDBC ConnectionHandle) |
SQLRETURN | SQLDriverConnect (SQLHDBC ConnectionHandle, SQLHWND WindowHandle, SQLCHAR *InConnectionString, SQLSMALLINT StringLength1, SQLCHAR *OutConnectionString, SQLSMALLINT BufferLength, SQLSMALLINT *StringLength2Ptr, SQLUSMALLINT DriverCompletion) |
SQLRETURN | SQLConnect (SQLHDBC ConnectionHandle, SQLCHAR *ServerName, SQLSMALLINT NameLength1, SQLCHAR *UserName, SQLSMALLINT NameLength2, SQLCHAR *Authentication, SQLSMALLINT NameLength3) |
SQLRETURN | SQLDisconnect (SQLHDBC ConnectionHandle) |
SQLRETURN | SQLSetConnectOption (SQLHDBC ConnectionHandle, SQLUSMALLINT Option, SQLUINTEGER Value) |
SQLRETURN | SQLSetConnectAttr (SQLHDBC ConnectionHandle, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER StringLength) |
SQLRETURN | SQLGetConnectOption (SQLHDBC ConnectionHandle, SQLUSMALLINT Option, SQLPOINTER Value) |
SQLRETURN | SQLGetConnectAttr (SQLHDBC ConnectionHandle, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER BufferLength, SQLINTEGER *StringLength) |
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 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:
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 SQLDriverConnect | ( | SQLHDBC | ConnectionHandle, | |
SQLHWND | WindowHandle, | |||
SQLCHAR * | InConnectionString, | |||
SQLSMALLINT | StringLength1, | |||
SQLCHAR * | OutConnectionString, | |||
SQLSMALLINT | BufferLength, | |||
SQLSMALLINT * | StringLength2Ptr, | |||
SQLUSMALLINT | DriverCompletion | |||
) |
Definition at line 109 of file odbcDbc.cxx.
References isValidHandle(), SQL_HANDLE_DBC, SQL_INVALID_HANDLE, SQL_SUCCESS, and SQLConnect().
Referenced by SqlOdbcConnection::connect(), and CacheTableLoader::load().
00118 { 00119 printf("Connection string is %s\n", InConnectionString); 00120 // Validate handle 00121 if( isValidHandle( ConnectionHandle, SQL_HANDLE_DBC ) != SQL_SUCCESS ) 00122 return( SQL_INVALID_HANDLE ); 00123 00124 return( ((CSqlOdbcDbc*) ConnectionHandle)->SQLConnect((SQLCHAR*)"a", 00125 (SQLSMALLINT)strlen("a"), (SQLCHAR*)"root", (SQLSMALLINT)strlen("root"), 00126 (SQLCHAR*)"manager", (SQLSMALLINT)strlen("manager")) ); 00127 00128 }
Here is the call graph for this function:
Here is the caller graph for this function:
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 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 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 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 SQLSetConnectOption | ( | SQLHDBC | ConnectionHandle, | |
SQLUSMALLINT | Option, | |||
SQLUINTEGER | Value | |||
) |
Definition at line 312 of file odbcDbc.cxx.
References SQLSetConnectAttr().
00316 { 00317 return( SQLSetConnectAttr( ConnectionHandle, Option, (SQLPOINTER) Value, 0) ); 00318 }
Here is the call graph for this function: