aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/statement.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-09-06 14:58:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-09-06 16:55:11 +0200
commit3ee1f474f72d093e27974e040372c53342702b12 (patch)
treea6fcc1da69d48f734f9b2b1fc26628bb4fdf421b /odb/pgsql/statement.hxx
parentad288e347bb45eb7a6bcbe3ed3821d008d816a5d (diff)
Allow select statement without parameters
Diffstat (limited to 'odb/pgsql/statement.hxx')
-rw-r--r--odb/pgsql/statement.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/odb/pgsql/statement.hxx b/odb/pgsql/statement.hxx
index 6e5484a..d7cf6dc 100644
--- a/odb/pgsql/statement.hxx
+++ b/odb/pgsql/statement.hxx
@@ -90,6 +90,11 @@ namespace odb
native_binding& native_cond,
binding& data);
+ select_statement (connection& conn,
+ const std::string& name,
+ const std::string& stmt,
+ binding& data);
+
// Common select interface expected by the generated code.
//
public:
@@ -154,7 +159,7 @@ namespace odb
private:
binding* cond_;
- native_binding& native_cond_;
+ native_binding* native_cond_;
binding& data_;