Details
Description
MariaDB [(none)]> select JSON_EXTRACT("[1, 2, [30, 40]]", '$[2][1]', '$[2][1]');
|
+--------------------------------------------------------+
|
| JSON_EXTRACT("[1, 2, [30, 40]]", '$[2][1]', '$[2][1]') |
|
+--------------------------------------------------------+
|
| [40] |
|
+--------------------------------------------------------+
|
While MySQL:
+--------------------------------------------------------+
|
| JSON_EXTRACT("[1, 2, [30, 40]]", '$[2][1]', '$[2][1]') |
|
+--------------------------------------------------------+
|
| [40, 40] |
|
+--------------------------------------------------------+
|
Documentation in our case says it should so I consider this a bug.