Main Page
Namespaces
Classes
Files
File List
File Members
libism
ISM
soci
src
core
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
16
procedure_impl::procedure_impl
(
prepare_temp_type
const
& prep)
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
30
prepare
(
rewrite_for_procedure_call
(prepInfo->
get_query
()));
31
32
define_and_bind
();
33
}
statement.h
soci::details
Definition:
db2/common.h:15
soci::details::ref_counted_prepare_info::get_query
std::string get_query() const
Definition:
ref-counted-prepare-info.cpp:31
soci::details::prepare_temp_type
Definition:
prepare-temp-type.h:23
soci::details::statement_impl::prepare
void prepare(std::string const &query, statement_type eType=st_repeatable_query)
Definition:
core/statement.cpp:187
soci::details::statement_impl::rewrite_for_procedure_call
std::string rewrite_for_procedure_call(std::string const &query)
Definition:
core/statement.cpp:659
soci::details::procedure_impl::procedure_impl
procedure_impl(session &s)
Definition:
procedure.h:22
procedure.h
soci::details::ref_counted_prepare_info::uses_
use_type_vector uses_
Definition:
ref-counted-prepare-info.h:61
prepare-temp-type.h
soci::details::prepare_temp_type::get_prepare_info
ref_counted_prepare_info * get_prepare_info() const
Definition:
prepare-temp-type.h:54
soci::details::statement_impl::intos_
into_type_vector intos_
Definition:
statement.h:90
soci::details::statement_impl::alloc
void alloc()
Definition:
core/statement.cpp:68
soci::details::ref_counted_prepare_info::intos_
into_type_vector intos_
Definition:
ref-counted-prepare-info.h:60
soci::details::ref_counted_prepare_info
Definition:
ref-counted-prepare-info.h:32
soci::details::statement_impl
Definition:
statement.h:37
soci::details::statement_impl::define_and_bind
void define_and_bind()
Definition:
core/statement.cpp:196
soci
Definition:
db2/common.h:15
soci::details::statement_impl::uses_
use_type_vector uses_
Definition:
statement.h:91
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