From: Ilia Alshanetsky Date: Sat, 23 Jul 2005 23:34:04 +0000 (+0000) Subject: Fixed bug #33841 (pdo sqlite driver forgets to update affected column count X-Git-Tag: RELEASE_0_9~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66125c18a378f21d9d7b375b38f1ec7f750650ea;p=php Fixed bug #33841 (pdo sqlite driver forgets to update affected column count on execution of prepared statments). --- diff --git a/NEWS b/NEWS index ea75f7e624..b8ddd15e29 100644 --- 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) diff --git a/ext/pdo_sqlite/sqlite_statement.c b/ext/pdo_sqlite/sqlite_statement.c index 100a388b5b..823a490281 100644 --- a/ext/pdo_sqlite/sqlite_statement.c +++ b/ext/pdo_sqlite/sqlite_statement.c @@ -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;