#include "odbcCommon.h"Include dependency graph for odbcError.cxx:

Go to the source code of this file.
Functions | |
| SQLRETURN | SQLError (SQLHENV EnvironmentHandle, SQLHDBC ConnectionHandle, SQLHSTMT StatementHandle, SQLCHAR *Sqlstate, SQLINTEGER *NativeError, SQLCHAR *MessageText, SQLSMALLINT BufferLength, SQLSMALLINT *TextLength) |
| SQLRETURN | SQLGetDiagRec (SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT RecNumber, SQLCHAR *Sqlstate, SQLINTEGER *NativeError, SQLCHAR *MessageText, SQLSMALLINT BufferLength, SQLSMALLINT *TextLength) |
Variables | |
| CSqlOdbcError | globalError (SQL_HANDLE_ENV) |
| SQLRETURN 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 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:

| CSqlOdbcError globalError(SQL_HANDLE_ENV) |
1.4.7