diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-10-14 14:03:06 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-10-14 14:24:33 +0200 |
commit | 4b140934ad3c685b35f17719417cf760b62ae1f0 (patch) | |
tree | 81d0bbf286f49eaca3b8c145531f394d78f99a1a | |
parent | 8030f64e42ec04eb8dd2803ea23e03ea0942f37f (diff) |
Correct logic used to indicate exhaustion of query result data
-rw-r--r-- | odb/oracle/statement.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/odb/oracle/statement.cxx b/odb/oracle/statement.cxx index df3c42b..af70aca 100644 --- a/odb/oracle/statement.cxx +++ b/odb/oracle/statement.cxx @@ -437,7 +437,7 @@ namespace odb size_t lob_prefetch_size) : statement (conn, s), data_ (data), - done_ (false) + done_ (true) { bind_param (cond.bind, cond.count, 0); bind_result (data.bind, data.count, lob_prefetch_size); @@ -450,7 +450,7 @@ namespace odb size_t lob_prefetch_size) : statement (conn, s), data_ (data), - done_ (false) + done_ (true) { bind_result (data.bind, data.count, lob_prefetch_size); } @@ -493,6 +493,8 @@ namespace odb // assert (n == data_.count); #endif + + done_ = false; } select_statement::result select_statement:: |