summaryrefslogtreecommitdiff
path: root/odb/oracle/auto-handle.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-02-01 15:47:37 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-02-01 15:47:37 +0300
commit62e234c114d2b6ead93a1d39593c66b648c3d0a6 (patch)
treece6740b4508eb29400490b20efc8e100e38a7b7f /odb/oracle/auto-handle.cxx
parent9072842a023c4b65ecb141292c4b63417fee1b98 (diff)
Turn libodb-oracle repository into package for muti-package repositorylibodb-oracle
Diffstat (limited to 'odb/oracle/auto-handle.cxx')
-rw-r--r--odb/oracle/auto-handle.cxx37
1 files changed, 0 insertions, 37 deletions
diff --git a/odb/oracle/auto-handle.cxx b/odb/oracle/auto-handle.cxx
deleted file mode 100644
index 55614d4..0000000
--- a/odb/oracle/auto-handle.cxx
+++ /dev/null
@@ -1,37 +0,0 @@
-// file : odb/oracle/auto-handle.cxx
-// license : ODB NCUEL; see accompanying LICENSE file
-
-#include <oci.h>
-
-#include <odb/oracle/auto-handle.hxx>
-
-namespace odb
-{
- namespace oracle
- {
- void
- oci_handle_free (void* h, ub4 t)
- {
- OCIHandleFree (h, t);
- }
-
- void handle_traits<OCISvcCtx>::
- release (OCISvcCtx* h, OCIError* e)
- {
- OCISessionRelease (h, e, 0, 0, OCI_DEFAULT);
- }
-
- void handle_traits<OCIStmt>::
- release (OCIStmt* h, ub4 m, OCIError* e)
- {
- OCIStmtRelease (h, e, 0, 0, m);
- }
-
- const ub4 handle_type_traits<OCIEnv>::htype = OCI_HTYPE_ENV;
- const ub4 handle_type_traits<OCIError>::htype = OCI_HTYPE_ERROR;
- const ub4 handle_type_traits<OCISvcCtx>::htype = OCI_HTYPE_SVCCTX;
- const ub4 handle_type_traits<OCIStmt>::htype = OCI_HTYPE_STMT;
- const ub4 handle_type_traits<OCIAuthInfo>::htype = OCI_HTYPE_AUTHINFO;
- const ub4 handle_type_traits<OCITrans>::htype = OCI_HTYPE_TRANS;
- }
-}