aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-11-08 13:25:19 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-11-08 14:46:33 +0200
commit85b6295e978746479e33a0033fbcf285da335594 (patch)
tree443a120be8191698a8d4b4898606c883ab39f853
parentc5472303e05fa06e902c62b58167effd2f321b23 (diff)
Make dt_default enumeration member the last in the set
-rw-r--r--odb/oracle/auto-descriptor.cxx2
-rw-r--r--odb/oracle/auto-descriptor.hxx4
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