sqlite3_open_v2()
failed when run with custom build of emsdk@4.0.1
#239
-
In my custom build, I upgrade the emsdk to 4.0.1 and it fails to open db: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@subframe7536 This is odd because result code 8 is SQLITE_READONLY, and to the best of my knowledge no example VFS returns that. Can you tell me what VFS you are using and what arguments are being passed to |
Beta Was this translation helpful? Give feedback.
-
Roy, in case you haven't seen this yet: emsdk 4.0 indirectly changes the timing of Module.postRun execution. That broke the "official" wasm build and might (might) impact wa-sqlite as well: |
Beta Was this translation helpful? Give feedback.
EMSDK 4.0 changed the default setting of WASM_BIGINT to true. wa-sqlite expects 64-bit ints to be passed as a "legalized" pair of 32-bit numbers so that would cause all kinds of havoc.
Fixed with #241.