diff options
-rw-r--r-- | odb/oracle/auto-descriptor.cxx | 1 | ||||
-rw-r--r-- | odb/oracle/auto-descriptor.hxx | 7 |
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); } |