Howdy,

This problem appears to be caused by SQLite ticket #3093:

 http://www.sqlite.org/cvstrac/tktview?tn=3093

which has been fixed upstream by the attached patch.  When I rebuilt
and installed libsqlite3-0 using this patch, I was able to build
libdbd-sqlite3-perl and pass its test suite.

Would it be OK to reassign this bug to libsqlite3-0?  Or should it be
cloned?

-- 
Matt
--- sqlite3-3.5.8.orig/src/btree.c	2008/04/24 19:15:10	1.452
+++ sqlite3-3.5.8/src/btree.c	2008/05/02 14:23:55	1.453
@@ -1899,8 +1899,10 @@
 #endif
 
   do {
-    while( rc==SQLITE_OK && pBt->pPage1==0 ){
-      rc = lockBtree(pBt);
+    if( pBt->pPage1==0 ){
+      do{
+        rc = lockBtree(pBt);
+      }while( pBt->pPage1==0 && rc==SQLITE_OK );
     }
 
     if( rc==SQLITE_OK && wrflag ){

Reply via email to