summaryrefslogtreecommitdiffstats
path: root/class/TableIterator.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-11-01 18:40:08 +0100
committerRemi Collet <fedora@famillecollet.com>2010-11-01 18:40:08 +0100
commitdb257c7de11da2771a9f61733f21a42c98cf2a97 (patch)
tree3a93d847a2917e27f9a4f8402735176244f6a101 /class/TableIterator.php
parent8b50ace3024268b3067c0bf43bbd68f824b90d81 (diff)
add CommonTable->optimize() method and call it during refresh
Diffstat (limited to 'class/TableIterator.php')
-rw-r--r--class/TableIterator.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/class/TableIterator.php b/class/TableIterator.php
index dfae859..6e44c18 100644
--- a/class/TableIterator.php
+++ b/class/TableIterator.php
@@ -230,7 +230,11 @@ class TableIterator implements Iterator
if ($this->_res && $this->_pos<0) {
if (!$this->_res->execute()) {
$err = $this->_res->errorInfo();
- throw new Exception($err[2]);
+ throw new Exception(
+ "\nSQL: " . $this->_sql .
+ "\nERROR: " . $err[2] .
+ "\nCODE:" . $err[0]
+ );
}
}
return $this->next();