diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-09-05 11:58:14 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-09-05 11:58:14 +0200 |
commit | d6518580059c6a0d34d7a1683fabc3bfcc4b5e27 (patch) | |
tree | 1d0cb1b8fd8f7fb98b52a8433c5cc4d1ef4383f1 /odb/oracle/auto-descriptor.cxx | |
parent | 83d687748558cb4f138cecfff2ccbe5cbbc0d761 (diff) |
Add RAII handle management for OCI handles and descriptors
Diffstat (limited to 'odb/oracle/auto-descriptor.cxx')
-rw-r--r-- | odb/oracle/auto-descriptor.cxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/odb/oracle/auto-descriptor.cxx b/odb/oracle/auto-descriptor.cxx new file mode 100644 index 0000000..17b9d4d --- /dev/null +++ b/odb/oracle/auto-descriptor.cxx @@ -0,0 +1,22 @@ +// file : odb/oracle/auto-descriptor.cxx +// author : Constantin Michael <constantin@codesynthesis.com> +// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC +// license : ODB NCUEL; see accompanying LICENSE file + +#include <oci.h> + +#include <odb/oracle/auto-descriptor.hxx> + +namespace odb +{ + namespace oracle + { + void + oci_descriptor_free (void* d, ub4 type) + { + OCIDescriptorFree (d, type); + } + + const ub4 descriptor_type_traits<OCIParam>::dtype = OCI_DTYPE_PARAM; + } +} |