aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/tester1.c-pp.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2024-07-22 21:21:25 +0000
committerstephan <stephan@noemail.net>2024-07-22 21:21:25 +0000
commitfaf10c521fd79975c6dd66e79457eb4b6966c0ef (patch)
tree19f83b510f335acfa3c3fc12f9602bf4168dd5b5 /ext/wasm/tester1.c-pp.js
parent71e2bdb2b45c03d4ed5b8cfe3998a18881afbd76 (diff)
downloadsqlite-faf10c521fd79975c6dd66e79457eb4b6966c0ef.tar.gz
sqlite-faf10c521fd79975c6dd66e79457eb4b6966c0ef.zip
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
Diffstat (limited to 'ext/wasm/tester1.c-pp.js')
-rw-r--r--ext/wasm/tester1.c-pp.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/wasm/tester1.c-pp.js b/ext/wasm/tester1.c-pp.js
index b5125b0d8..6cdd0bddd 100644
--- a/ext/wasm/tester1.c-pp.js
+++ b/ext/wasm/tester1.c-pp.js
@@ -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))