aboutsummaryrefslogtreecommitdiff
path: root/odb/mssql/error.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-16 12:14:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-16 12:14:57 +0200
commitbc85d6a1c8d5296428c121cd1b51d470d5c0e963 (patch)
tree4c7c95c245fd7d025181b5758ca7c500439097a5 /odb/mssql/error.hxx
parent90e5bee516554805707436ccf9cb2b2e7d2c207a (diff)
Add initial translate_error() implementation
Diffstat (limited to 'odb/mssql/error.hxx')
-rw-r--r--odb/mssql/error.hxx30
1 files changed, 30 insertions, 0 deletions
diff --git a/odb/mssql/error.hxx b/odb/mssql/error.hxx
new file mode 100644
index 0000000..2cbea5c
--- /dev/null
+++ b/odb/mssql/error.hxx
@@ -0,0 +1,30 @@
+// file : odb/mssql/error.hxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef ODB_MSSQL_ERROR_HXX
+#define ODB_MSSQL_ERROR_HXX
+
+#include <odb/pre.hxx>
+
+#include <odb/mssql/version.hxx>
+#include <odb/mssql/forward.hxx> // connection
+#include <odb/mssql/auto-handle.hxx>
+#include <odb/mssql/details/export.hxx>
+
+namespace odb
+{
+ namespace mssql
+ {
+ LIBODB_MSSQL_EXPORT void
+ translate_error (const auto_handle<SQL_HANDLE_ENV>&);
+
+ LIBODB_MSSQL_EXPORT void
+ translate_error (connection&);
+ }
+}
+
+#include <odb/post.hxx>
+
+#endif // ODB_MSSQL_ERROR_HXX