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 
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 
30 {
31  OCIDescriptorFree(rowidp_, OCI_DTYPE_ROWID);
32 }
oracle_rowid_backend(oracle_session_backend &session)


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