From 90e5bee516554805707436ccf9cb2b2e7d2c207a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 16 Nov 2011 11:51:31 +0200 Subject: Add auto_handle class template --- odb/mssql/auto-handle.cxx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 odb/mssql/auto-handle.cxx (limited to 'odb/mssql/auto-handle.cxx') 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 +// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC +// license : ODB NCUEL; see accompanying LICENSE file + +#include +#include + +namespace odb +{ + namespace mssql + { + void + free_handle (SQLHANDLE h, SQLSMALLINT htype) + { + SQLFreeHandle (htype, h); + } + } +} -- cgit v1.1