mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-27 20:41:58 +03:00
Move a block of JS code which was inadvertently (and harmlessly) moved in the previous checkin. Clarify the semantics of an internal-use-only API. Add another WAL-related JS test.
FossilOrigin-Name: 6cd9f55a975b5237efee8776efce7e7836b41905ca750f82be3b90aa04c1dff2
This commit is contained in:
@ -3151,7 +3151,11 @@ globalThis.sqlite3InitModule = sqlite3InitModule;
|
||||
.assert( dbytes.byteLength == nWrote );
|
||||
let db2 = new u1.OpfsSAHPoolDb(dbName2);
|
||||
T.assert(db2 instanceof sqlite3.oo1.DB)
|
||||
//.assert('wal' == db2.selectValue("pragma journal_mode=WAL"))
|
||||
.assert('wal' !== db2.selectValue("pragma journal_mode")
|
||||
/* importDb() unsets the WAL-mode header for
|
||||
historical reasons. Because clients must
|
||||
explicitly enable pragma locking_mode=exclusive
|
||||
before using WAL, that behavior is retained. */)
|
||||
.assert(3 === db2.selectValue('select count(*) from t'));
|
||||
db2.close();
|
||||
T.assert(true === u1.unlink(dbName2))
|
||||
|
Reference in New Issue
Block a user