1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Reverse the meaningn of -> and ->>. ->> raises an error on invalid JSON

but -> does not.  This allows ->> to behave the same as PG and MySQL.

FossilOrigin-Name: 85f8170555ee0d4d28cb7e120a7062e9f64c331a936fdfa29fc0e67224eea7c6
This commit is contained in:
drh
2022-01-07 17:26:40 +00:00
parent 9956c18a81
commit a3f51d7b3e
4 changed files with 12 additions and 12 deletions

View File

@@ -99,10 +99,10 @@ do_catchsql_test json102-268 {
SELECT json_nextract('[1,2,3', '$');
} {0 {{"[1,2,3"}}}
do_catchsql_test json102-269a {
SELECT '[1,2,3' -> '$';
SELECT '[1,2,3' ->> '$';
} {1 {malformed JSON}}
do_catchsql_test json102-269b {
SELECT '[1,2,3' ->> '$';
SELECT '[1,2,3' -> '$';
} {0 {{"[1,2,3"}}}
do_execsql_test json102-270 {