aboutsummaryrefslogtreecommitdiff
path: root/odb/mssql/auto-handle.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-16 11:51:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-16 11:51:31 +0200
commit90e5bee516554805707436ccf9cb2b2e7d2c207a (patch)
tree65a579dceff167c67377fd2390b2b84377cdca45 /odb/mssql/auto-handle.cxx
parent7e704a7e6e57cf877614fd762d4667ef32be2eea (diff)
Add auto_handle class template
Diffstat (limited to 'odb/mssql/auto-handle.cxx')
-rw-r--r--odb/mssql/auto-handle.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/odb/mssql/auto-handle.cxx b/odb/mssql/auto-handle.cxx
new file mode 100644
index 0000000..733ec92
--- /dev/null
+++ b/odb/mssql/auto-handle.cxx
@@ -0,0 +1,19 @@
+// file : odb/mssql/auto-handle.cxx
+// author : Constantin Michael <constantin@codesynthesis.com>
+// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC
+// license : ODB NCUEL; see accompanying LICENSE file
+
+#include <odb/mssql/odbc.hxx>
+#include <odb/mssql/auto-handle.hxx>
+
+namespace odb
+{
+ namespace mssql
+ {
+ void
+ free_handle (SQLHANDLE h, SQLSMALLINT htype)
+ {
+ SQLFreeHandle (htype, h);
+ }
+ }
+}