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

procedure.cpp

Go to the documentation of this file.
00001 //
00002 // Copyright (C) 2004-2008 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_SOURCE
00009 #include "procedure.h"
00010 #include "statement.h"
00011 #include "prepare-temp-type.h"
00012 
00013 using namespace soci;
00014 using namespace soci::details;
00015 
00016 procedure_impl::procedure_impl(prepare_temp_type const & prep)
00017     : statement_impl(prep.get_prepare_info()->session_),
00018     refCount_(1)
00019 {
00020     ref_counted_prepare_info * prepInfo = prep.get_prepare_info();
00021 
00022     // take all bind/define info
00023     intos_.swap(prepInfo->intos_);
00024     uses_.swap(prepInfo->uses_);
00025 
00026     // allocate handle
00027     alloc();
00028 
00029     // prepare the statement
00030     prepare(rewrite_for_procedure_call(prepInfo->get_query()));
00031 
00032     define_and_bind();
00033 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
SourceForge Logo

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