SOCI Logo Get SOCI at SourceForge.net. Fast, secure and Free Open Source software downloads

row-id.cpp

Go to the documentation of this file.
00001 //
00002 // Copyright (C) 2004-2007 Maciej Sobczak, Stephen Hutton
00003 // Distributed under the Boost Software License, Version 1.0.
00004 // (See accompanying file LICENSE_1_0.txt or copy at
00005 // http://www.boost.org/LICENSE_1_0.txt)
00006 //
00007 
00008 #define SOCI_ORACLE_SOURCE
00009 #include "soci-oracle.h"
00010 #include <cctype>
00011 #include <cstdio>
00012 #include <cstring>
00013 #include <ctime>
00014 #include <sstream>
00015 
00016 #ifdef SOCI_PGSQL_NOPARAMS
00017 #define SOCI_PGSQL_NOBINDBYNAME
00018 #endif // SOCI_PGSQL_NOPARAMS
00019 
00020 #ifdef _MSC_VER
00021 #pragma warning(disable:4355)
00022 #endif
00023 
00024 using namespace soci;
00025 using namespace soci::details;
00026 
00027 oracle_rowid_backend::oracle_rowid_backend(oracle_session_backend &session)
00028 {
00029     sword res = OCIDescriptorAlloc(session.envhp_,
00030         reinterpret_cast<dvoid**>(&rowidp_), OCI_DTYPE_ROWID, 0, 0);
00031     if (res != OCI_SUCCESS)
00032     {
00033         throw soci_error("Cannot allocate the ROWID descriptor");
00034     }
00035 }
00036 
00037 oracle_rowid_backend::~oracle_rowid_backend()
00038 {
00039     OCIDescriptorFree(rowidp_, OCI_DTYPE_ROWID);
00040 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
SourceForge Logo

Generated on Sun Oct 3 2010 17:42:16 for EXTRAS-SOCI by Doxygen 1.7.1