aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/testing2.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-08-24 20:57:37 +0000
committerstephan <stephan@noemail.net>2022-08-24 20:57:37 +0000
commit407f75378e2bfebfd21ca56b6986154f0c35d1ac (patch)
treec22591d4e185d9717feaa985d49ae1cd64095950 /ext/wasm/testing2.js
parent3734401a95dc92f7cb7c3a86875370f1598213aa (diff)
downloadsqlite-407f75378e2bfebfd21ca56b6986154f0c35d1ac.tar.gz
sqlite-407f75378e2bfebfd21ca56b6986154f0c35d1ac.zip
Change DB.exec() rowMode default from 'stmt' to 'array', per /chat discussion. Add DB.exec() rowMode option for fetching a specific column by name. Add result column names to worker1 exec() callback interface, as there's otherwise no way to get that info from a worker.
FossilOrigin-Name: 1bb37e5c477b9eb098362f74a45a55be23d450fe45cdff58c1cbff08b5b3998f
Diffstat (limited to 'ext/wasm/testing2.js')
-rw-r--r--ext/wasm/testing2.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/wasm/testing2.js b/ext/wasm/testing2.js
index d64fd6e89..8d9e66dc1 100644
--- a/ext/wasm/testing2.js
+++ b/ext/wasm/testing2.js
@@ -117,7 +117,9 @@
if(undefined === f.counter) f.counter = 0;
if(null === ev.rowNumber){
/* End of result set. */
- T.assert(undefined === ev.row);
+ T.assert(undefined === ev.row)
+ .assert(Array.isArray(ev.columnNames))
+ .assert(ev.columnNames.length);
}else{
T.assert(ev.rowNumber > 0);
++f.counter;