Skip to content

Commit 1c20ce2

Browse files
committed
MDEV-39276: Assertion 0 failed in json_find_path
This was resolved with MDEV-35548, however we add two additional test cases.
1 parent d37e50c commit 1c20ce2

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

mysql-test/main/func_json.result

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,6 +1794,12 @@ JSON_EXTRACT('0E+0','$')
17941794
SELECT JSON_EXISTS(CONCAT('[', REPEAT('[', 4000), 'Y', REPEAT(']', 4000), ', 1]'), '$[100]') as je;
17951795
je
17961796
NULL
1797+
SELECT JSON_EXISTS('[[[[[Y[[[[n[[[[[[[[[[[n[[[Vn]]]]]]]]]]]]]],]]:]]]](', '$[0 to rrrrrRR-1]') as je;
1798+
je
1799+
NULL
1800+
SELECT JSON_EXISTS('[[[[[Y[[[[[[[[[[[[[[[[[[Vn]]]]]]]]]]]]]],]]:]]]](', '$[0 to rrrrRR-1]') as je;
1801+
je
1802+
NULL
17971803
#
17981804
# End of 10.6 tests
17991805
#

mysql-test/main/func_json.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,8 @@ SELECT JSON_EXTRACT('{a:true}','$.a')=TRUE;
12531253
SELECT JSON_EXTRACT('0E+0','$');
12541254

12551255
SELECT JSON_EXISTS(CONCAT('[', REPEAT('[', 4000), 'Y', REPEAT(']', 4000), ', 1]'), '$[100]') as je;
1256+
SELECT JSON_EXISTS('[[[[[Y[[[[n[[[[[[[[[[[n[[[Vn]]]]]]]]]]]]]],]]:]]]](', '$[0 to rrrrrRR-1]') as je;
1257+
SELECT JSON_EXISTS('[[[[[Y[[[[[[[[[[[[[[[[[[Vn]]]]]]]]]]]]]],]]:]]]](', '$[0 to rrrrRR-1]') as je;
12561258

12571259
--echo #
12581260
--echo # End of 10.6 tests

0 commit comments

Comments
 (0)