summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Gass2019-04-18 11:34:03 +0200
committerNathan Gass2019-04-18 11:34:24 +0200
commitbde0043efe2fefef8fa29e15e3315253c129d27c (patch)
treef02d9eb0d718851b8483332892408b0283916141
parent9946d81f9f8132d78edad5a892c5217a3e01259c (diff)
downloaditools-bde0043efe2fefef8fa29e15e3315253c129d27c.tar.gz
itools-bde0043efe2fefef8fa29e15e3315253c129d27c.tar.bz2
itools-bde0043efe2fefef8fa29e15e3315253c129d27c.zip
close result in unbuffered mode for multiple unbuffered queries
-rw-r--r--it_dbi.class4
1 files changed, 4 insertions, 0 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 6a0f62f..c995d55 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -725,7 +725,11 @@ function iterate()
$this->_key = $this->_data[$this->_p['keyfield']];
}
else
+ {
$this->clear(false);
+ if ($this->_p['unbuffered'])
+ $this->_result->close();
+ }
$this->_read_post_process();
}