mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fixed memory leak, after SQLITE_DONE sqlite3_data_count() always returns 0.
This commit is contained in:
parent
3fbb2081a1
commit
703c55577b
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ static int pdo_sqlite_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
|
|||
return 1;
|
||||
|
||||
case SQLITE_DONE:
|
||||
stmt->column_count = sqlite3_data_count(S->stmt);
|
||||
stmt->column_count = sqlite3_column_count(S->stmt);
|
||||
sqlite3_reset(S->stmt);
|
||||
S->done = 1;
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue