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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user