Warning, file /sdk/codevis/thirdparty/soci/src/core/ref-counted-prepare-info.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 //
0002 // Copyright (C) 2004-2008 Maciej Sobczak, Stephen Hutton
0003 // Distributed under the Boost Software License, Version 1.0.
0004 // (See accompanying file LICENSE_1_0.txt or copy at
0005 // http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 
0008 #define SOCI_SOURCE
0009 #include "soci/ref-counted-prepare-info.h"
0010 #include "soci/session.h"
0011 
0012 using namespace soci;
0013 using namespace soci::details;
0014 
0015 void ref_counted_prepare_info::final_action()
0016 {
0017     // deallocate all bind and define objects
0018     for (std::size_t i = intos_.size(); i > 0; --i)
0019     {
0020         delete intos_[i - 1];
0021         intos_.resize(i - 1);
0022     }
0023 
0024     for (std::size_t i = uses_.size(); i > 0; --i)
0025     {
0026         delete uses_[i - 1];
0027         uses_.resize(i - 1);
0028     }
0029 }
0030 
0031 std::string ref_counted_prepare_info::get_query() const
0032 {
0033     return session_.get_query();
0034 }