diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-16 11:51:31 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-16 11:51:31 +0200 |
commit | 90e5bee516554805707436ccf9cb2b2e7d2c207a (patch) | |
tree | 65a579dceff167c67377fd2390b2b84377cdca45 /odb/mssql/auto-handle.cxx | |
parent | 7e704a7e6e57cf877614fd762d4667ef32be2eea (diff) |
Add auto_handle class template
Diffstat (limited to 'odb/mssql/auto-handle.cxx')
-rw-r--r-- | odb/mssql/auto-handle.cxx | 19 |
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); + } + } +} |