// file : odb/mssql/error.hxx // license : ODB NCUEL; see accompanying LICENSE file #ifndef ODB_MSSQL_ERROR_HXX #define ODB_MSSQL_ERROR_HXX #include #include // std::size_t #include #include #include // connection, multiple_exceptions #include #include 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&, std::size_t pos = 0, multiple_exceptions* = 0); LIBODB_MSSQL_EXPORT void translate_error (SQLRETURN, SQLHANDLE, SQLSMALLINT htype); } } #include #endif // ODB_MSSQL_ERROR_HXX