From 4b140934ad3c685b35f17719417cf760b62ae1f0 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Fri, 14 Oct 2011 14:03:06 +0200 Subject: Correct logic used to indicate exhaustion of query result data --- odb/oracle/statement.cxx | 6 ++++-- 1 file 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:: -- cgit v1.1