]> granicus.if.org Git - php/commitdiff
Fixed bug #29476 (sqlite_fetch_column_types() locks the database forever).
authorIlia Alshanetsky <iliaa@php.net>
Tue, 18 Apr 2006 14:30:16 +0000 (14:30 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 18 Apr 2006 14:30:16 +0000 (14:30 +0000)
NEWS
ext/sqlite/sqlite.c

diff --git a/NEWS b/NEWS
index 50ea9dbf14a7211e87c103d15426f82d202f328d..952dd6a62e24896cc52265e7ce44e4c68f4b17ea 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -24,6 +24,8 @@ PHP                                                                        NEWS
 - Fixed Bug #36872 (session_destroy() fails after call to 
   session_regenerate_id(true)). (Ilia)
 - Fixed bug #36513 (comment will be outputed in last line). (Dmitry)
+- Fixed bug #29476 (sqlite_fetch_column_types() locks the database forever).
+  (Ilia)
 
 06 Apr 2006, PHP 5.1.3RC3
 - Eliminated run-time constant fetching for TRUE, FALSE and NULL. (Dmitry)
index fb97233695166206f474545ce612958634030e63..c3d585857aa302d6222d32e332937a4b95cf4a4e 100644 (file)
@@ -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);
 }