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

ext/sqlite/sqlite.c

index 906f44ab7c24fba9180f08d9edc84b97d939e5f4..9fbb6b6f4ea26f9df8a1f1f7b34afff12be29f80 100644 (file)
@@ -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);
 }