diff options
author | stephan <stephan@noemail.net> | 2025-06-21 15:58:20 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2025-06-21 15:58:20 +0000 |
commit | 6fcb7f22a12ea151241d9287e63d92035c30608a (patch) | |
tree | ebdffcada5244a0c0d57d612000adc5fbec9c4ed /ext/wasm/tester1.c-pp.js | |
parent | 2f7f948fa75fd8890ea04345bb44a1ce6b5028a7 (diff) | |
download | sqlite-6fcb7f22a12ea151241d9287e63d92035c30608a.tar.gz sqlite-6fcb7f22a12ea151241d9287e63d92035c30608a.zip |
Give oo1.Stmt.get() similar treatment to [8c187140a60b]. This is an internal change only - the API is unaffected.
FossilOrigin-Name: f5a7abc0a447273de40dacc463d267d26d4b62be56ee15baf05825791c2a7a6e
Diffstat (limited to 'ext/wasm/tester1.c-pp.js')
-rw-r--r-- | ext/wasm/tester1.c-pp.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/wasm/tester1.c-pp.js b/ext/wasm/tester1.c-pp.js index e489b6c61..25760940e 100644 --- a/ext/wasm/tester1.c-pp.js +++ b/ext/wasm/tester1.c-pp.js @@ -1263,7 +1263,6 @@ globalThis.sqlite3InitModule = sqlite3InitModule; capi.sqlite3_stmt_status( st, capi.SQLITE_STMTSTATUS_RUN, 0 ) === 0) - .assert(!st._mayGet) .assert('a' === st.getColumnName(0)) .mustThrowMatching(()=>st.columnCount=2, /columnCount property is read-only/) @@ -1287,9 +1286,9 @@ globalThis.sqlite3InitModule = sqlite3InitModule; .assert(1===st.get(0,capi.SQLITE_BLOB).length) .assert(st.getBlob(0) instanceof Uint8Array) .assert('3'.charCodeAt(0) === st.getBlob(0)[0]) - .assert(st._mayGet) .assert(false===st.step()) - .assert(!st._mayGet) + .mustThrowMatching(()=>st.get(0), + "Stmt.step() has not (recently) returned true.") .assert( capi.sqlite3_stmt_status( st, capi.SQLITE_STMTSTATUS_RUN, 0 |