aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-10-11 09:28:48 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-10-14 13:12:02 +0200
commit161dc74b596ea0131798e30632acdf3ec5165f9c (patch)
tree754d65c3c713254a37ed23e1f3c9393d5f34aa9c
parentd8227f949940cd83ebf7d349b1e97d116474758b (diff)
Add OCILobLocator to the set of descriptor types that auto_descriptor manages
-rw-r--r--odb/oracle/auto-descriptor.cxx1
-rw-r--r--odb/oracle/auto-descriptor.hxx7
2 files changed, 7 insertions, 1 deletions
diff --git a/odb/oracle/auto-descriptor.cxx b/odb/oracle/auto-descriptor.cxx
index 17b9d4d..522d1e9 100644
--- a/odb/oracle/auto-descriptor.cxx
+++ b/odb/oracle/auto-descriptor.cxx
@@ -18,5 +18,6 @@ namespace odb
}
const ub4 descriptor_type_traits<OCIParam>::dtype = OCI_DTYPE_PARAM;
+ const ub4 descriptor_type_traits<OCILobLocator>::dtype = OCI_DTYPE_LOB;
}
}
diff --git a/odb/oracle/auto-descriptor.hxx b/odb/oracle/auto-descriptor.hxx
index 9e3172c..a6c82a3 100644
--- a/odb/oracle/auto-descriptor.hxx
+++ b/odb/oracle/auto-descriptor.hxx
@@ -28,6 +28,11 @@ namespace odb
struct descriptor_type_traits<OCIParam>
{ static const ub4 dtype; };
+ template <>
+ struct descriptor_type_traits<OCILobLocator>
+ { static const ub4 dtype; };
+
+
//
// descriptor_traits
//
@@ -39,7 +44,7 @@ namespace odb
struct descriptor_traits
{
static void
- release (OCIParam* d)
+ release (D* d)
{
oci_descriptor_free (d, descriptor_type_traits<D>::dtype);
}