1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Make sure jsonReplaceNode() always leaves the JsonParse in a consistent state even if an error is encountered.

FossilOrigin-Name: 01d52232dd6fbd253e77419a17df3df83d49434792d288ef96e14739a89cef3b
This commit is contained in:
drh
2023-07-26 19:11:47 +00:00
parent 5028dd89ab
commit beb3fb6904
3 changed files with 9 additions and 9 deletions

View File

@@ -2853,6 +2853,7 @@ static void jsonReplaceNode(
break;
}
case SQLITE_BLOB: {
jsonParseAddNode(p, JSON_NULL, 0, 0);
sqlite3_result_error(pCtx, "JSON cannot hold BLOB values", -1);
p->nErr++;
break;