Fixed bug #33841 (pdo sqlite driver forgets to update affected column count

on execution of prepared statments).
This commit is contained in:
Ilia Alshanetsky 2005-07-23 23:34:04 +00:00
parent 63d0774ed6
commit 66125c18a3
2 changed files with 3 additions and 0 deletions

View 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;