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