|
Lightweight 0.20260625.0
|
Supplies diagnostics for an ODBC handle. More...
#include <SqlError.hpp>
Public Member Functions | |
| SqlDiagnosticSource (SqlDiagnosticSource const &)=delete | |
| SqlDiagnosticSource & | operator= (SqlDiagnosticSource const &)=delete |
| SqlDiagnosticSource (SqlDiagnosticSource &&)=delete | |
| SqlDiagnosticSource & | operator= (SqlDiagnosticSource &&)=delete |
| virtual SqlErrorInfo | Diagnose (SQLSMALLINT handleType, SQLHANDLE handle)=0 |
| Returns the diagnostics for the given handle. | |
Supplies diagnostics for an ODBC handle.
Exists so error paths can be driven from a unit test without a database. Production code never installs one: with no source configured, SqlErrorInfo reads diagnostics from the driver as usual. A test installs a source that returns a scripted SqlErrorInfo, which makes the classification and propagation logic reachable without provoking a real driver failure.
Definition at line 74 of file SqlError.hpp.
|
pure virtual |
Returns the diagnostics for the given handle.
| handleType | One of SQL_HANDLE_ENV, SQL_HANDLE_DBC or SQL_HANDLE_STMT. |
| handle | The handle the diagnostics are requested for. A fake may ignore it. |
handle.