mariadb/mysql-test/suite/json/r
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.result MDEV-35614: JSON_UNQUOTE doesn't work with emojis 2025-04-19 08:55:05 +10:00
json_table.result MDEV-27898 CREATE VIEW AS SELECT FROM JSON_TABLE column requires global privileges 2025-10-16 10:24:29 +11:00
json_table_binlog.result MDEV-25154: JSON_TABLE: Queries involving ordinality columns are unsafe ... 2021-05-13 15:34:25 +03:00
json_table_mysql.result MDEV-27898 CREATE VIEW AS SELECT FROM JSON_TABLE column requires global privileges 2025-10-16 10:24:29 +11:00
json_table_notembedded.result MDEV-25151 JSON_TABLE: Unexpectedly padded values in a PATH column. 2021-04-21 10:21:44 +04:00
rpl_json_char.result MDEV-27018 IF and COALESCE lose "json" property 2022-01-21 19:28:48 +04:00
rpl_json_longtext.result MDEV-27018 IF and COALESCE lose "json" property 2022-01-21 19:28:48 +04:00
rpl_json_mediumtext.result MDEV-27018 IF and COALESCE lose "json" property 2022-01-21 19:28:48 +04:00
rpl_json_text.result MDEV-27018 IF and COALESCE lose "json" property 2022-01-21 19:28:48 +04:00
rpl_json_tinytext.result MDEV-27018 IF and COALESCE lose "json" property 2022-01-21 19:28:48 +04:00
rpl_json_varchar.result MDEV-27018 IF and COALESCE lose "json" property 2022-01-21 19:28:48 +04:00
type_json.result Merge branch '10.6' into 10.11 2024-05-10 20:02:18 +02:00