mariadb/mysql-test/suite/json/t
Daniel Black 5bd91f6c0e MDEV-27898 CREATE VIEW AS SELECT FROM JSON_TABLE column requires global privileges
JSON_TABLE is marked as a special "*any_db*" table. Because this special
marking is processed all the way though to get_column_grant where
its processed like its in database called "*any_db*". As this
doesn't exist, only those users with global privileges can create
views on a JSON_TABLE.

Under a Prepared Statement protocol a Create_tmp_table is
used for the JSON_TABLE, but it gets assigned an "" database
name.

We correct this to give it "*any_db*" like the SQL parser
indicating that no database is needed.

To commonly correct the fill_effective_table_privileges
by looking explictly for the "*any_db*", those tables that
have this as the database name get SELECT privileges.

While correcting the database for the JSON_TABLE, lets give
it a "json_table" name rather than "(temporary)" for
greater clarity in warning messages.
2025-10-16 10:24:29 +11:00
..
json_no_table.test Merge 10.5 into 10.6 2024-10-03 09:31:39 +03:00
json_table.test MDEV-27898 CREATE VIEW AS SELECT FROM JSON_TABLE column requires global privileges 2025-10-16 10:24:29 +11:00
json_table_binlog.test MDEV-25154: JSON_TABLE: Queries involving ordinality columns are unsafe ... 2021-05-13 15:34:25 +03:00
json_table_mysql.test MDEV-25822 JSON_TABLE: default values should allow non-string literals 2024-09-27 13:52:17 +03:00
json_table_notembedded.test MDEV-25151 JSON_TABLE: Unexpectedly padded values in a PATH column. 2021-04-21 10:21:44 +04:00
rpl_json_char.test MDEV-27018 IF and COALESCE lose "json" property 2022-01-21 19:28:48 +04:00
rpl_json_longtext.test MDEV-27018 IF and COALESCE lose "json" property 2022-01-21 19:28:48 +04:00
rpl_json_mediumtext.test MDEV-27018 IF and COALESCE lose "json" property 2022-01-21 19:28:48 +04:00
rpl_json_text.test MDEV-27018 IF and COALESCE lose "json" property 2022-01-21 19:28:48 +04:00
rpl_json_tinytext.test MDEV-27018 IF and COALESCE lose "json" property 2022-01-21 19:28:48 +04:00
rpl_json_varchar.test MDEV-27018 IF and COALESCE lose "json" property 2022-01-21 19:28:48 +04:00
type_json.test MDEV-30646 View created via JSON_ARRAYAGG returns incorrect json object 2024-04-29 13:47:45 +04:00