From 62e234c114d2b6ead93a1d39593c66b648c3d0a6 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 1 Feb 2024 15:47:37 +0300 Subject: Turn libodb-oracle repository into package for muti-package repository --- libodb-oracle/odb/oracle/auto-handle.cxx | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 libodb-oracle/odb/oracle/auto-handle.cxx (limited to 'libodb-oracle/odb/oracle/auto-handle.cxx') diff --git a/libodb-oracle/odb/oracle/auto-handle.cxx b/libodb-oracle/odb/oracle/auto-handle.cxx new file mode 100644 index 0000000..55614d4 --- /dev/null +++ b/libodb-oracle/odb/oracle/auto-handle.cxx @@ -0,0 +1,37 @@ +// file : odb/oracle/auto-handle.cxx +// license : ODB NCUEL; see accompanying LICENSE file + +#include + +#include + +namespace odb +{ + namespace oracle + { + void + oci_handle_free (void* h, ub4 t) + { + OCIHandleFree (h, t); + } + + void handle_traits:: + release (OCISvcCtx* h, OCIError* e) + { + OCISessionRelease (h, e, 0, 0, OCI_DEFAULT); + } + + void handle_traits:: + release (OCIStmt* h, ub4 m, OCIError* e) + { + OCIStmtRelease (h, e, 0, 0, m); + } + + const ub4 handle_type_traits::htype = OCI_HTYPE_ENV; + const ub4 handle_type_traits::htype = OCI_HTYPE_ERROR; + const ub4 handle_type_traits::htype = OCI_HTYPE_SVCCTX; + const ub4 handle_type_traits::htype = OCI_HTYPE_STMT; + const ub4 handle_type_traits::htype = OCI_HTYPE_AUTHINFO; + const ub4 handle_type_traits::htype = OCI_HTYPE_TRANS; + } +} -- cgit v1.1