diff options
Diffstat (limited to 'odb/mssql/error.hxx')
-rw-r--r-- | odb/mssql/error.hxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/odb/mssql/error.hxx b/odb/mssql/error.hxx index 69ff6d4..59ba3bf 100644 --- a/odb/mssql/error.hxx +++ b/odb/mssql/error.hxx @@ -6,10 +6,11 @@ #define ODB_MSSQL_ERROR_HXX #include <odb/pre.hxx> +#include <cstddef> // std::size_t #include <odb/mssql/mssql-fwd.hxx> #include <odb/mssql/version.hxx> -#include <odb/mssql/forward.hxx> // connection +#include <odb/mssql/forward.hxx> // connection, multiple_exceptions #include <odb/mssql/auto-handle.hxx> #include <odb/mssql/details/export.hxx> @@ -18,13 +19,17 @@ namespace odb { namespace mssql { + // Translate ODBC error given a handle and throw (or return, in case + // multiple_exceptions is not NULL) an appropriate exception. + // LIBODB_MSSQL_EXPORT void translate_error (SQLRETURN, connection&, bool end_tran = false); LIBODB_MSSQL_EXPORT void translate_error (SQLRETURN, connection&, - const auto_handle<SQL_HANDLE_STMT>&); + const auto_handle<SQL_HANDLE_STMT>&, + std::size_t pos = 0, multiple_exceptions* = 0); LIBODB_MSSQL_EXPORT void translate_error (SQLRETURN, SQLHANDLE, SQLSMALLINT htype); |