diff options
author | stephan <stephan@noemail.net> | 2022-12-13 08:25:28 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-12-13 08:25:28 +0000 |
commit | 30f50a2d34a0859cbd7d9424bd53eb6cd1306c3a (patch) | |
tree | af06959f2ced3efd93a47d29cb0ea6ecf147e12c /ext/wasm/api/sqlite3-api-oo1.js | |
parent | 7ca4312ff2dc94bed3897275eeb822aa286f96bb (diff) | |
download | sqlite-30f50a2d34a0859cbd7d9424bd53eb6cd1306c3a.tar.gz sqlite-30f50a2d34a0859cbd7d9424bd53eb6cd1306c3a.zip |
Extend the sqlite3.wasm function pointer argument converter to be able to handle the "two-layered context" of sqlite3_create_collation() and friends and make use of FuncPtrAdapter to perform JS-to-WASM function conversion for them.
FossilOrigin-Name: 0a60b7215e433f8c50027c70731b11e58d74c90ec5903e66ae42f9c98e40b044
Diffstat (limited to 'ext/wasm/api/sqlite3-api-oo1.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-oo1.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/wasm/api/sqlite3-api-oo1.js b/ext/wasm/api/sqlite3-api-oo1.js index a593889a8..d4191cf3f 100644 --- a/ext/wasm/api/sqlite3-api-oo1.js +++ b/ext/wasm/api/sqlite3-api-oo1.js @@ -158,6 +158,7 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ let rc = capi.sqlite3_open_v2(fn, pPtr, oflags, vfsName || 0); pDb = wasm.peekPtr(pPtr); checkSqlite3Rc(pDb, rc); + capi.sqlite3_extended_result_codes(pDb, 1); if(flagsStr.indexOf('t')>=0){ capi.sqlite3_trace_v2(pDb, capi.SQLITE_TRACE_STMT, __dbTraceToConsole, 0); |