aboutsummaryrefslogtreecommitdiff
path: root/odb/mssql/error.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-17 16:46:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-17 16:46:11 +0200
commite2f3b445828604945aa8ca8bfc2bf77ae7be8b81 (patch)
treee4854c3a6dd2ce5960f619e80e86c6dc8a4b4b64 /odb/mssql/error.hxx
parentbcbbad2716b09c0c70366825f5bdf2055c8d21b8 (diff)
Translate certain SQLSTATE codes to special exceptions
Diffstat (limited to 'odb/mssql/error.hxx')
-rw-r--r--odb/mssql/error.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/odb/mssql/error.hxx b/odb/mssql/error.hxx
index 35906b7..6208103 100644
--- a/odb/mssql/error.hxx
+++ b/odb/mssql/error.hxx
@@ -11,6 +11,8 @@
#include <odb/mssql/version.hxx>
#include <odb/mssql/forward.hxx> // connection
#include <odb/mssql/mssql-fwd.hxx>
+#include <odb/mssql/auto-handle.hxx>
+
#include <odb/mssql/details/export.hxx>
namespace odb
@@ -21,6 +23,9 @@ namespace odb
translate_error (connection&);
LIBODB_MSSQL_EXPORT void
+ translate_error (connection&, const auto_handle<SQL_HANDLE_STMT>&);
+
+ LIBODB_MSSQL_EXPORT void
translate_error (SQLHANDLE, SQLSMALLINT htype);
}
}