summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-11-05 19:50:12 +0100
committerAleksander Machniak <alec@alec.pl>2012-11-05 19:50:12 +0100
commitf6cd739a0a364fe76f6015b7bc70eac4a3a9bf02 (patch)
tree5dd8efdd45f544892d1f7ff200ee47f0bc810758
parente68fa71b0eb66a12adcdf35c411c6f83970749ec (diff)
Make sure affected_rows() method returns expected (consistent with other RDBMSes) result on MySQL
-rw-r--r--program/include/rcube_db_mysql.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/program/include/rcube_db_mysql.php b/program/include/rcube_db_mysql.php
index 2cdcf3021..6f0acba54 100644
--- a/program/include/rcube_db_mysql.php
+++ b/program/include/rcube_db_mysql.php
@@ -127,6 +127,9 @@ class rcube_db_mysql extends rcube_db
$result[PDO::MYSQL_ATTR_SSL_CA] = $dsn['ca'];
}
+ // Always return matching (not affected only) rows count
+ $result[PDO::MYSQL_ATTR_FOUND_ROWS] = true;
+
return $result;
}