mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-25138 JSON_TABLE: A space between JSON_TABLE and opening bracket causes syntax error.
syntax fixed.
This commit is contained in:
@ -437,6 +437,15 @@ DROP VIEW v;
|
||||
--error ER_TABLE_CANT_HANDLE_FT
|
||||
SELECT val, MATCH(val) AGAINST( 'MariaDB') FROM JSON_TABLE('{"db":"xx"}', '$' COLUMNS(val VARCHAR(32) PATH '$**.*')) AS jt;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-25138 JSON_TABLE: A space between JSON_TABLE and opening bracket causes syntax error
|
||||
--echo #
|
||||
select * from json_table ('{}', '$' COLUMNS(x FOR ORDINALITY)) a;
|
||||
create table json_table(id int);
|
||||
insert into json_table values (1), (2), (3);
|
||||
select * from json_table;
|
||||
drop table json_table;
|
||||
|
||||
--echo #
|
||||
--echo # End of 10.6 tests
|
||||
--echo #
|
||||
|
Reference in New Issue
Block a user