diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-02-01 15:47:37 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-02-01 15:47:37 +0300 |
commit | 62e234c114d2b6ead93a1d39593c66b648c3d0a6 (patch) | |
tree | ce6740b4508eb29400490b20efc8e100e38a7b7f /libodb-oracle/odb/oracle/auto-descriptor.cxx | |
parent | 9072842a023c4b65ecb141292c4b63417fee1b98 (diff) |
Turn libodb-oracle repository into package for muti-package repositorylibodb-oracle
Diffstat (limited to 'libodb-oracle/odb/oracle/auto-descriptor.cxx')
-rw-r--r-- | libodb-oracle/odb/oracle/auto-descriptor.cxx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libodb-oracle/odb/oracle/auto-descriptor.cxx b/libodb-oracle/odb/oracle/auto-descriptor.cxx new file mode 100644 index 0000000..fa83086 --- /dev/null +++ b/libodb-oracle/odb/oracle/auto-descriptor.cxx @@ -0,0 +1,27 @@ +// file : odb/oracle/auto-descriptor.cxx +// license : ODB NCUEL; see accompanying LICENSE file + +#include <oci.h> + +#include <odb/oracle/auto-descriptor.hxx> + +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, descriptor_type type) + { + OCIDescriptorFree (d, oci_descriptor_types[type]); + } + } +} |