mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Give oo1.Stmt.get() similar treatment to [8c187140a60b]. This is an internal change only - the API is unaffected.
FossilOrigin-Name: f5a7abc0a447273de40dacc463d267d26d4b62be56ee15baf05825791c2a7a6e
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user