1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Have sqlite3_value/column_text/blob_v2() unconditionally return MISUSE for a NULL input object or output target, rather than only when API_ARMOR is in effect. This is debatable.

FossilOrigin-Name: c8edbfc7e8b57e7b1c9a4a5cdfdc00cd7216b6ccc36ff983f85ad94865f6288f
This commit is contained in:
stephan
2025-07-01 20:56:49 +00:00
parent 417876bd8b
commit 768714c136
5 changed files with 23 additions and 23 deletions

View File

@ -3415,8 +3415,6 @@ globalThis.sqlite3InitModule = sqlite3InitModule;
checkRc('SQLITE_OK', "column null pnOut",
capi.sqlite3_column_text_v2(q, 1, ppOut, 0, 0));
/* Some of the following only applies because we build with
SQLITE_ENABLE_API_ARMOR. */
checkRc('SQLITE_MISUSE', "value null ppOut",
capi.sqlite3_value_text_v2(sv, 0, pnOut, 0));
checkRc('SQLITE_MISUSE', "value null arg0",