diff options
Diffstat (limited to 'odb/oracle')
-rw-r--r-- | odb/oracle/auto-descriptor.cxx | 2 | ||||
-rw-r--r-- | odb/oracle/auto-descriptor.hxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/odb/oracle/auto-descriptor.cxx b/odb/oracle/auto-descriptor.cxx index b332c16..b78eb79 100644 --- a/odb/oracle/auto-descriptor.cxx +++ b/odb/oracle/auto-descriptor.cxx @@ -23,7 +23,7 @@ namespace odb void oci_descriptor_free (void* d, descriptor_type type) { - OCIDescriptorFree (d, oci_descriptor_types[type - 1]); + OCIDescriptorFree (d, oci_descriptor_types[type]); } } } diff --git a/odb/oracle/auto-descriptor.hxx b/odb/oracle/auto-descriptor.hxx index 6bc97d6..ce01c8f 100644 --- a/odb/oracle/auto-descriptor.hxx +++ b/odb/oracle/auto-descriptor.hxx @@ -19,12 +19,12 @@ namespace odb { enum descriptor_type { - dt_default = 0, dt_param, dt_lob, dt_timestamp, dt_interval_ym, - dt_interval_ds + dt_interval_ds, + dt_default, }; LIBODB_ORACLE_EXPORT void |