diff options
author | stephan <stephan@noemail.net> | 2022-12-24 14:16:02 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-12-24 14:16:02 +0000 |
commit | cede6384fde313cd346c341e6088cb4c8a34f5c5 (patch) | |
tree | 6d99824067e8a7a8df04571ebe65533a61692014 /ext/wasm/tester1.c-pp.js | |
parent | 0db1c901378e29fd576e93d16a1305c6269d411d (diff) | |
download | sqlite-cede6384fde313cd346c341e6088cb4c8a34f5c5.tar.gz sqlite-cede6384fde313cd346c341e6088cb4c8a34f5c5.zip |
Extend oo1.Stmt.bind() to accept ArrayBuffer instances to bind as blobs.
FossilOrigin-Name: f76bd30137fbff981625ffcb28cddd5e8651803dfc3f2d8d7801ead33496311d
Diffstat (limited to 'ext/wasm/tester1.c-pp.js')
-rw-r--r-- | ext/wasm/tester1.c-pp.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/wasm/tester1.c-pp.js b/ext/wasm/tester1.c-pp.js index 8b80d4d88..a87532e18 100644 --- a/ext/wasm/tester1.c-pp.js +++ b/ext/wasm/tester1.c-pp.js @@ -1648,7 +1648,10 @@ self.sqlite3InitModule = sqlite3InitModule; assert(T.eqApprox(1.3,db.selectValue("select asis(1 + 0.3)"))); let blobArg = new Uint8Array([0x68, 0x69]); - let blobRc = db.selectValue("select asis(?1)", blobArg); + let blobRc = db.selectValue( + "select asis(?1)", + blobArg.buffer/*confirm that ArrayBuffer is handled as a Uint8Array*/ + ); T.assert(blobRc instanceof Uint8Array). assert(2 === blobRc.length). assert(0x68==blobRc[0] && 0x69==blobRc[1]); |