aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2010-09-02 14:25:57 +0300
committerFilipp Lepalaan <filipp@mac.com>2010-09-02 14:25:57 +0300
commit3dd1539456b212d2e859c3b9d381378e355f6321 (patch)
tree368f691c2688634bb8628beb4b86baadc1f9a0bc
parentf9777c989ce04d33288655ea4d1c274bd5b90b5f (diff)
downloadmain-3dd1539456b212d2e859c3b9d381378e355f6321.tar.gz
main-3dd1539456b212d2e859c3b9d381378e355f6321.tar.bz2
main-3dd1539456b212d2e859c3b9d381378e355f6321.zip
fix delete
-rw-r--r--MainDb.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/MainDb.php b/MainDb.php
index 6a18f9e..19ccfa9 100644
--- a/MainDb.php
+++ b/MainDb.php
@@ -105,7 +105,7 @@ class MainDb
// DELETE statements should report number of rows
if (preg_match('/^DELETE/i', $sql)) {
- return $result->rowCount();
+ return $stmt->rowCount();
}
// SELECT statements need the query results