@@ -957,10 +957,8 @@ FROM (SELECT * FROM json_test) AS json_test_values;
957
957
json_object("a", json_compact(a), "b", json_compact(b))
958
958
{"a": [1,2,3], "b": {"a":"foo"}}
959
959
DROP TABLE json_test;
960
- #
961
960
# End of 10.2 tests
962
961
#
963
- #
964
962
# MDEV-12854 Synchronize CREATE..SELECT data type and result set metadata data type for INT functions
965
963
#
966
964
SELECT
@@ -1492,10 +1490,8 @@ JSON_VALID(' {"number": 01E-4}')
1492
1490
select JSON_VALID(' {"number": 0E-4.0}');
1493
1491
JSON_VALID(' {"number": 0E-4.0}')
1494
1492
0
1495
- #
1496
1493
# End of 10.4 tests
1497
1494
#
1498
- #
1499
1495
# MDEV-16620 JSON_ARRAYAGG
1500
1496
#
1501
1497
CREATE TABLE t1 (a INT);
@@ -1727,10 +1723,8 @@ NULL
1727
1723
Warnings:
1728
1724
Warning 4036 Character disallowed in JSON in argument 1 to function 'json_extract' at position 2
1729
1725
SET @@collation_connection= @save_collation_connection;
1730
- #
1731
1726
# End of 10.5 tests
1732
1727
#
1733
- #
1734
1728
# MDEV-26054 Server crashes in Item_func_json_arrayagg::get_str_from_field
1735
1729
#
1736
1730
CREATE TABLE t (a VARCHAR(8));
@@ -1766,6 +1760,15 @@ FROM JSON_TABLE (@data, '$[*]' COLUMNS (data text PATH '$.Data')) AS t;
1766
1760
data
1767
1761
<root language="de"></root>
1768
1762
#
1763
+ # MDEV-21530: json_extract STILL crashes in Item_func_json_extract::read_json
1764
+ #
1765
+ select null<=>json_extract('1',json_object(null,'{ }',null,null),'{}');
1766
+ null<=>json_extract('1',json_object(null,'{ }',null,null),'{}')
1767
+ 1
1768
+ Warnings:
1769
+ Warning 4042 Syntax error in JSON path in argument 2 to function 'json_extract' at position 1
1770
+ # End of 10.6 tests
1771
+ #
1769
1772
# MDEV-35614 JSON_UNQUOTE doesn't work with emojis
1770
1773
#
1771
1774
SELECT HEX(JSON_UNQUOTE('"\\ud83d\\ude0a"')) as hex_smiley;
@@ -1803,9 +1806,6 @@ show warnings;
1803
1806
Level Code Message
1804
1807
Warning 4035 Broken JSON string in argument 1 to function 'json_unquote' at position 13
1805
1808
#
1806
- # End of 10.6 tests
1807
- #
1808
- #
1809
1809
# MDEV-31147 json_normalize does not work correctly with MSAN build
1810
1810
#
1811
1811
CREATE TABLE t1 (val JSON);
@@ -1815,10 +1815,8 @@ SELECT * FROM t1;
1815
1815
val normalized_json
1816
1816
15 1.5E1
1817
1817
DROP TABLE t1;
1818
- #
1819
1818
# End of 10.8 tests
1820
1819
#
1821
- #
1822
1820
# MDEV-27677: Implement JSON_OVERLAPS()
1823
1821
#
1824
1822
# Testing scalar json datatypes
@@ -2670,6 +2668,4 @@ SELECT JSON_VALUE(@json,'$.A[last-1][last-1].key1');
2670
2668
JSON_VALUE(@json,'$.A[last-1][last-1].key1')
2671
2669
NULL
2672
2670
SET @@collation_connection= @save_collation_connection;
2673
- #
2674
2671
# End of 10.9 Test
2675
- #
0 commit comments