From: Ilia Alshanetsky Date: Tue, 18 Apr 2006 14:30:33 +0000 (+0000) Subject: MFB51: Fixed bug #29476 (sqlite_fetch_column_types() locks the database X-Git-Tag: RELEASE_1_3~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2ea7081e0e2f9a4a8c87c633ca83a3f88288e1b;p=php MFB51: Fixed bug #29476 (sqlite_fetch_column_types() locks the database forever). --- diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c index 906f44ab7c..9fbb6b6f4e 100644 --- a/ext/sqlite/sqlite.c +++ b/ext/sqlite/sqlite.c @@ -1701,7 +1701,9 @@ PHP_FUNCTION(sqlite_fetch_column_types) } efree(colname); } - + if (res.vm) { + sqlite_finalize(res.vm, NULL); + } done: sqlite_exec(db->db, "PRAGMA show_datatypes = OFF", NULL, NULL, NULL); }