aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/statement.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-09-05 10:14:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-09-05 10:14:34 +0200
commit141253ea17264e122e440cae441bf3d952329d35 (patch)
tree8eee6d9b1bf3ad7d628cbb7a636bc66cd88d5780 /odb/mysql/statement.hxx
parentb51a2071da2169ced13dd3da669486a6f82dada4 (diff)
Allow select statement without parameters
Diffstat (limited to 'odb/mysql/statement.hxx')
-rw-r--r--odb/mysql/statement.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/odb/mysql/statement.hxx b/odb/mysql/statement.hxx
index 7cc1e1f..0c15f8c 100644
--- a/odb/mysql/statement.hxx
+++ b/odb/mysql/statement.hxx
@@ -57,6 +57,11 @@ namespace odb
const std::string& statement,
binding& cond,
binding& data);
+
+ select_statement (connection& conn,
+ const std::string& statement,
+ binding& data);
+
enum result
{
success,
@@ -114,7 +119,7 @@ namespace odb
std::size_t rows_;
std::size_t size_;
- binding& cond_;
+ binding* cond_;
std::size_t cond_version_;
binding& data_;