From 1c0d8a536a9fa9eef11c5b54cc2f748961e6ce3a Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 18 Apr 2006 14:30:16 +0000 Subject: Fixed bug #29476 (sqlite_fetch_column_types() locks the database forever). --- ext/sqlite/sqlite.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/sqlite/sqlite.c') 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); } -- cgit v1.2.1