aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-api-oo1.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2023-01-28 04:20:46 +0000
committerstephan <stephan@noemail.net>2023-01-28 04:20:46 +0000
commit65f7942d0678a56f788d54a636c9c30ed63b5ee6 (patch)
treed3d7ad55512c95b9ca137d605d7e0b760f8bf687 /ext/wasm/api/sqlite3-api-oo1.js
parentcfd01014d0b5657a8b48d4c828405703cce9e941 (diff)
parent69141f52be6368d3510b551c74029e3600b6f4c2 (diff)
downloadsqlite-65f7942d0678a56f788d54a636c9c30ed63b5ee6.tar.gz
sqlite-65f7942d0678a56f788d54a636c9c30ed63b5ee6.zip
Add JS bundler-friendly JS build. Minor test code cleanups.
FossilOrigin-Name: 24d3a53dea5e596230558e233cbbd9d0288b4c394cd5ea7b650fd99bff4cde2e
Diffstat (limited to 'ext/wasm/api/sqlite3-api-oo1.js')
-rw-r--r--ext/wasm/api/sqlite3-api-oo1.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/wasm/api/sqlite3-api-oo1.js b/ext/wasm/api/sqlite3-api-oo1.js
index ba210e7f9..fddd7b38e 100644
--- a/ext/wasm/api/sqlite3-api-oo1.js
+++ b/ext/wasm/api/sqlite3-api-oo1.js
@@ -183,7 +183,7 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
checkSqlite3Rc(
pDb, capi.sqlite3_exec(pDb, postInitSql, 0, 0, 0)
);
- }
+ }
}catch(e){
this.close();
throw e;
@@ -791,6 +791,9 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
- `callback` and `resultRows`: permit an array entries with
semantics similar to those described for `bind` above.
+ - If passed neither a callback nor returnValue but is passed a
+ rowMode, default to returning the result set.
+
*/
exec: function(/*(sql [,obj]) || (obj)*/){
affirmDbOpen(this);