aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/query.cxx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-07-05 14:12:09 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-07-05 14:12:09 +0200
commit9134d603584241135be03ce2e9f2f66a46c44fc6 (patch)
tree1fa4fce57c129ab891b1b17f8c12094070d86bb3 /odb/pgsql/query.cxx
parent0f04eb5bc2069a63c86489258da06f007d8ac3c7 (diff)
Aesthetic changes
Diffstat (limited to 'odb/pgsql/query.cxx')
-rw-r--r--odb/pgsql/query.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/odb/pgsql/query.cxx b/odb/pgsql/query.cxx
index 5bf1f52..36a624b 100644
--- a/odb/pgsql/query.cxx
+++ b/odb/pgsql/query.cxx
@@ -149,7 +149,7 @@ namespace odb
// Copy any remaining characters in q.clause_.
//
- if (cur_pos < q.clause_.length ())
+ if (cur_pos < q.clause_.size ())
{
size_t n (clause_.size ());
@@ -159,7 +159,7 @@ namespace odb
clause_.append (q.clause_, cur_pos, string::npos);
}
- size_t n = bind_.size ();
+ size_t n (bind_.size ());
parameters_.insert (
parameters_.end (), q.parameters_.begin (), q.parameters_.end ());
@@ -212,13 +212,13 @@ namespace odb
clause_ += ' ';
parameter_offset o;
- o.first = clause_.length ();
+ o.first = clause_.size ();
ostringstream ss;
ss << parameters_.size () + 1;
clause_ += '$' + ss.str ();
- o.second = clause_.length ();
+ o.second = clause_.size ();
parameter_offsets_.push_back (o);
parameters_.push_back (p);