diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2006-04-18 14:30:16 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2006-04-18 14:30:16 +0000 |
commit | 1c0d8a536a9fa9eef11c5b54cc2f748961e6ce3a (patch) | |
tree | f29022ab09813137e12b28a5406cdbf3749fdd2d /ext/sqlite/sqlite.c | |
parent | 349bcd744336b3da8e04b5bef3b0e8ffdaaddc1a (diff) | |
download | php-git-1c0d8a536a9fa9eef11c5b54cc2f748961e6ce3a.tar.gz |
Fixed bug #29476 (sqlite_fetch_column_types() locks the database forever).
Diffstat (limited to 'ext/sqlite/sqlite.c')
-rw-r--r-- | ext/sqlite/sqlite.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c index fb97233695..c3d585857a 100644 --- a/ext/sqlite/sqlite.c +++ b/ext/sqlite/sqlite.c @@ -1705,7 +1705,9 @@ PHP_FUNCTION(sqlite_fetch_column_types) add_index_string(return_value, i, colnames[ncols + i] ? (char *)colnames[ncols + i] : "", 1); } } - + if (res.vm) { + sqlite_finalize(res.vm, NULL); + } done: sqlite_exec(db->db, "PRAGMA show_datatypes = OFF", NULL, NULL, NULL); } |