aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/oracle/statement.cxx13
-rw-r--r--odb/oracle/statement.hxx6
2 files changed, 18 insertions, 1 deletions
diff --git a/odb/oracle/statement.cxx b/odb/oracle/statement.cxx
index 70859a4..5a31a13 100644
--- a/odb/oracle/statement.cxx
+++ b/odb/oracle/statement.cxx
@@ -326,7 +326,7 @@ namespace odb
const string& s,
binding& cond,
binding& data,
- std::size_t lob_prefetch_size)
+ size_t lob_prefetch_size)
: statement (conn, s),
done_ (false)
{
@@ -334,6 +334,17 @@ namespace odb
bind_result (data.bind, data.count, lob_prefetch_size);
}
+ select_statement::
+ select_statement (connection& conn,
+ const string& s,
+ binding& data,
+ size_t lob_prefetch_size)
+ : statement (conn, s),
+ done_ (false)
+ {
+ bind_result (data.bind, data.count, lob_prefetch_size);
+ }
+
void select_statement::
execute ()
{
diff --git a/odb/oracle/statement.hxx b/odb/oracle/statement.hxx
index add263a..8d0b491 100644
--- a/odb/oracle/statement.hxx
+++ b/odb/oracle/statement.hxx
@@ -76,6 +76,12 @@ namespace odb
binding& cond,
binding& data,
std::size_t lob_prefetch_size = 0);
+
+ select_statement (connection& conn,
+ const std::string& statement,
+ binding& data,
+ std::size_t lob_prefetch_size = 0);
+
enum result
{
success,