procedure.cpp
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2008 Maciej Sobczak, Stephen Hutton
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 //
7 
8 #define SOCI_SOURCE
9 #include "procedure.h"
10 #include "statement.h"
11 #include "prepare-temp-type.h"
12 
13 using namespace soci;
14 using namespace soci::details;
15 
17  : statement_impl(prep.get_prepare_info()->session_),
18  refCount_(1)
19 {
20  ref_counted_prepare_info * prepInfo = prep.get_prepare_info();
21 
22  // take all bind/define info
23  intos_.swap(prepInfo->intos_);
24  uses_.swap(prepInfo->uses_);
25 
26  // allocate handle
27  alloc();
28 
29  // prepare the statement
31 
33 }
void prepare(std::string const &query, statement_type eType=st_repeatable_query)
std::string rewrite_for_procedure_call(std::string const &query)
ref_counted_prepare_info * get_prepare_info() const
into_type_vector intos_
Definition: statement.h:90


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