ref-counted-prepare-info.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
10 #include "session.h"
11 
12 using namespace soci;
13 using namespace soci::details;
14 
16 {
17  // deallocate all bind and define objects
18  for (std::size_t i = intos_.size(); i > 0; --i)
19  {
20  delete intos_[i - 1];
21  intos_.resize(i - 1);
22  }
23 
24  for (std::size_t i = uses_.size(); i > 0; --i)
25  {
26  delete uses_[i - 1];
27  uses_.resize(i - 1);
28  }
29 }
30 
32 {
33  return session_.get_query();
34 }
std::string get_query() const


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