Commit 9119ed82 authored by Vadim Zeitlin's avatar Vadim Zeitlin

Rename db2_statement_backend::names field to names_.

No changes, just rename the field for consistency with the other backends, all
of which call it "names_" (if they have it).
parent f5c86b70
......@@ -200,7 +200,7 @@ struct SOCI_DB2_DECL db2_statement_backend : details::statement_backend
SQLHANDLE hStmt;
std::string query_;
std::vector<std::string> names;
std::vector<std::string> names_;
bool hasVectorUseElements;
SQLUINTEGER numRowsFetched;
details::db2::binding_method use_binding_method_;
......
......@@ -135,8 +135,8 @@ void db2_standard_use_type_backend::bind_by_name(
int position = -1;
int count = 1;
for (std::vector<std::string>::iterator it = statement_.names.begin();
it != statement_.names.end(); ++it)
for (std::vector<std::string>::iterator it = statement_.names_.begin();
it != statement_.names_.end(); ++it)
{
if (*it == name)
{
......
......@@ -102,7 +102,7 @@ void db2_statement_backend::prepare(std::string const & query ,
}
else // end of name
{
names.push_back(name);
names_.push_back(name);
name.clear();
std::ostringstream ss;
ss << '?';
......@@ -117,7 +117,7 @@ void db2_statement_backend::prepare(std::string const & query ,
if (state == in_name)
{
names.push_back(name);
names_.push_back(name);
std::ostringstream ss;
ss << '?';
query_ += ss.str();
......
......@@ -231,8 +231,8 @@ void db2_vector_use_type_backend::bind_by_name(
}
statement_.use_binding_method_ = details::db2::BOUND_BY_NAME;
for (std::vector<std::string>::iterator it = statement_.names.begin();
it != statement_.names.end(); ++it)
for (std::vector<std::string>::iterator it = statement_.names_.begin();
it != statement_.names_.end(); ++it)
{
if (*it == name)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment