Main Page
Namespaces
Classes
Files
File List
File Members
libism
ISM
soci
src
backends
oracle
oracle/row-id.cpp
Go to the documentation of this file.
1
//
2
// Copyright (C) 2013 Mateusz Loskot <mateusz@loskot.net>
3
// Copyright (C) 2004-2007 Maciej Sobczak, Stephen Hutton
4
// Distributed under the Boost Software License, Version 1.0.
5
// (See accompanying file LICENSE_1_0.txt or copy at
6
// http://www.boost.org/LICENSE_1_0.txt)
7
//
8
9
#define SOCI_ORACLE_SOURCE
10
#include "
soci-oracle.h
"
11
12
#ifdef _MSC_VER
13
#pragma warning(disable:4355)
14
#endif
15
16
using namespace
soci
;
17
using namespace
soci::details
;
18
19
oracle_rowid_backend::oracle_rowid_backend
(
oracle_session_backend
&
session
)
20
{
21
sword res = OCIDescriptorAlloc(session.
envhp_
,
22
reinterpret_cast<dvoid**>(&rowidp_), OCI_DTYPE_ROWID, 0, 0);
23
if
(res != OCI_SUCCESS)
24
{
25
throw
soci_error
(
"Cannot allocate the ROWID descriptor"
);
26
}
27
}
28
29
oracle_rowid_backend::~oracle_rowid_backend
()
30
{
31
OCIDescriptorFree(rowidp_, OCI_DTYPE_ROWID);
32
}
soci::details
Definition:
db2/common.h:15
soci::oracle_session_backend::envhp_
OCIEnv * envhp_
Definition:
soci-oracle.h:267
soci::oracle_rowid_backend::oracle_rowid_backend
oracle_rowid_backend(oracle_session_backend &session)
Definition:
oracle/row-id.cpp:19
soci::soci_error
Definition:
core/error.h:19
soci::oracle_session_backend
Definition:
soci-oracle.h:243
soci::session
Definition:
session.h:40
soci::oracle_rowid_backend::~oracle_rowid_backend
~oracle_rowid_backend()
Definition:
oracle/row-id.cpp:29
soci-oracle.h
soci
Definition:
db2/common.h:15
asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:40