mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
MDEV-25202: JSON_TABLE: Early table reference leads to unexpected result set
Address review input: switch Name_resolution_context::ignored_tables from table_map to a list of TABLE_LIST objects. The rationale is that table bits may be changed due to query rewrites, etc, which may potentially require updating ignored_tables.
This commit is contained in:
committed by
Alexey Botchkov
parent
0984b8ed08
commit
b0817ff8de
@@ -195,14 +195,15 @@ bool fill_record(THD *thd, TABLE *table, Field **field, List<Item> &values,
|
||||
Field *
|
||||
find_field_in_tables(THD *thd, Item_ident *item,
|
||||
TABLE_LIST *first_table, TABLE_LIST *last_table,
|
||||
table_map ignored_tables,
|
||||
ignored_tables_list_t ignored_tables,
|
||||
Item **ref, find_item_error_report_type report_error,
|
||||
bool check_privileges, bool register_tree_change);
|
||||
Field *
|
||||
find_field_in_table_ref(THD *thd, TABLE_LIST *table_list,
|
||||
const char *name, size_t length,
|
||||
const char *item_name, const char *db_name,
|
||||
const char *table_name, table_map ignored_tables,
|
||||
const char *table_name,
|
||||
ignored_tables_list_t ignored_tables,
|
||||
Item **ref, bool check_privileges, bool allow_rowid,
|
||||
uint *cached_field_index_ptr,
|
||||
bool register_tree_change, TABLE_LIST **actual_table);
|
||||
|
||||
Reference in New Issue
Block a user