aboutsummaryrefslogtreecommitdiff
path: root/odb/oracle/auto-descriptor.cxx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-11-07 15:02:14 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-11-08 14:46:33 +0200
commit655fc5c0827d56b6eaa86f80c904d9a607530fcb (patch)
treecf4679282bb15dd15c73ff429e0b20428eb58650 /odb/oracle/auto-descriptor.cxx
parent60d4d13a85130ccdc3b232e420bc3c18683846b9 (diff)
Implement support for Oracle temporal types
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;
}
}