]> granicus.if.org Git - php/commitdiff
Fixed bug #33841 (pdo sqlite driver forgets to update affected column count
authorIlia Alshanetsky <iliaa@php.net>
Sat, 23 Jul 2005 23:34:04 +0000 (23:34 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sat, 23 Jul 2005 23:34:04 +0000 (23:34 +0000)
on execution of prepared statments).

NEWS
ext/pdo_sqlite/sqlite_statement.c

diff --git a/NEWS b/NEWS
index ea75f7e62478a39b2f755aa8af3cf51350210362..b8ddd15e295d2342a0de114977ed902dde58ad33 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
 PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 2005, PHP 5.1
+- Fixed bug #33841 (pdo sqlite driver forgets to update affected column count
+  on execution of prepared statments).
 - Fixed bug #33802 (throw Exception in error handler causes crash). (Dmitry)
 - Fixed bug #33710 (ArrayAccess objects doen't initialize $this). (Dmitry)
 - Fixed bug #33578 (strtotime() problem with "Oct17" format). (Derick)
index 100a388b5be1407553de8692d423f328f1e9652c..823a490281b047e548e1e8b714242b7527319950 100644 (file)
@@ -60,6 +60,7 @@ static int pdo_sqlite_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
 
                case SQLITE_DONE:
                        stmt->column_count = sqlite3_column_count(S->stmt);
+                       stmt->row_count = sqlite3_changes(S->H->db);
                        sqlite3_reset(S->stmt);
                        S->done = 1;
                        return 1;