aboutsummaryrefslogtreecommitdiff
path: root/odb/oracle/auto-descriptor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/oracle/auto-descriptor.cxx')
-rw-r--r--odb/oracle/auto-descriptor.cxx16
1 files changed, 11 insertions, 5 deletions
diff --git a/odb/oracle/auto-descriptor.cxx b/odb/oracle/auto-descriptor.cxx
index 522d1e9..b332c16 100644
--- a/odb/oracle/auto-descriptor.cxx
+++ b/odb/oracle/auto-descriptor.cxx
@@ -11,13 +11,19 @@ namespace odb
{
namespace oracle
{
+ static const ub4 oci_descriptor_types[] =
+ {
+ OCI_DTYPE_PARAM,
+ OCI_DTYPE_LOB,
+ OCI_DTYPE_TIMESTAMP,
+ OCI_DTYPE_INTERVAL_YM,
+ OCI_DTYPE_INTERVAL_DS
+ };
+
void
- oci_descriptor_free (void* d, ub4 type)
+ oci_descriptor_free (void* d, descriptor_type type)
{
- OCIDescriptorFree (d, type);
+ OCIDescriptorFree (d, oci_descriptor_types[type - 1]);
}
-
- const ub4 descriptor_type_traits<OCIParam>::dtype = OCI_DTYPE_PARAM;
- const ub4 descriptor_type_traits<OCILobLocator>::dtype = OCI_DTYPE_LOB;
}
}