aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite/query.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-10-12 17:24:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-10-19 11:40:30 +0200
commitd94948b8bccfd8748245726487d54c41bb199baf (patch)
treec83176902ed8cb3c49532078e0705e2fc6621555 /odb/sqlite/query.cxx
parent1c8dc77a0feae8b33e8c06f7ba076bd26d278054 (diff)
Completion of prepared query support
Diffstat (limited to 'odb/sqlite/query.cxx')
-rw-r--r--odb/sqlite/query.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/odb/sqlite/query.cxx b/odb/sqlite/query.cxx
index f6a4dc1..2a1c203 100644
--- a/odb/sqlite/query.cxx
+++ b/odb/sqlite/query.cxx
@@ -96,7 +96,6 @@ namespace odb
init ()
{
bool inc_ver (false);
- sqlite::bind* b (&bind_[0]);
for (size_t i (0); i < params_.size (); ++i)
{
@@ -106,7 +105,7 @@ namespace odb
{
if (p.init ())
{
- p.bind (b + i);
+ p.bind (&bind_[i]);
inc_ver = true;
}
}