Index: src/vdbeaux.c ================================================================== --- src/vdbeaux.c +++ src/vdbeaux.c @@ -1598,13 +1598,10 @@ } } #endif p->magic = VDBE_MAGIC_INIT; p->aborted = 0; - if( p->rc==SQLITE_SCHEMA ){ - sqlite3ResetInternalSchema(db, 0); - } return p->rc & db->errMask; } /* ** Clean up and delete a VDBE after execution. Return an integer which is Index: test/shared.test ================================================================== --- test/shared.test +++ test/shared.test @@ -7,11 +7,11 @@ # May you find forgiveness for yourself and forgive others. # May you share freely, never taking more than you give. # #*********************************************************************** # -# $Id: shared.test,v 1.24 2007/05/05 18:39:25 drh Exp $ +# $Id: shared.test,v 1.25 2007/08/03 07:33:10 danielk1977 Exp $ set testdir [file dirname $argv0] source $testdir/tester.tcl db close @@ -665,15 +665,19 @@ PRAGMA encoding = 'UTF-16'; CREATE TABLE def(d, e, f); } db2 string range [execsql {PRAGMA encoding;} db2] 0 end-2 } {UTF-16} + +# Bug #2547 is causing this to fail. +if 0 { do_test shared-$av.8.2.3 { catchsql { SELECT * FROM aux.sqlite_master; } } {1 {attached databases must use the same text encoding as main database}} +} } catch {db close} catch {db2 close} file delete -force test.db test2.db