summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--adodb.inc.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/adodb.inc.php b/adodb.inc.php
index 64138e89..07fdf72d 100644
--- a/adodb.inc.php
+++ b/adodb.inc.php
@@ -2685,8 +2685,9 @@ if (!defined('_ADODB_LAYER')) {
}
$rs = $this->SelectLimit($sql, 1);
- if (!$rs) {
- return false; // table does not exist
+ if (!$rs || $mode == DB_AUTOQUERY_UPDATE && $rs->EOF) {
+ // Table does not exist or udpate where clause matches no rows
+ return false;
}
$rs->tableName = $table;