summaryrefslogtreecommitdiff
path: root/sql/sql_base.h
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2021-04-16 19:50:08 +0300
committerAlexey Botchkov <holyfoot@askmonty.org>2021-04-21 10:21:48 +0400
commitb0817ff8def0104bf2f82c98b10480a5854a69fc (patch)
tree6d4035d1eb76d1850eaf51bc3d2970818b17c674 /sql/sql_base.h
parent0984b8ed0876f9c7046964b000a8bb27f2587b14 (diff)
downloadmariadb-git-b0817ff8def0104bf2f82c98b10480a5854a69fc.tar.gz
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.
Diffstat (limited to 'sql/sql_base.h')
-rw-r--r--sql/sql_base.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_base.h b/sql/sql_base.h
index 1836c07497a..922c61ca123 100644
--- a/sql/sql_base.h
+++ b/sql/sql_base.h
@@ -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);