1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-25202: JSON_TABLE: Early table reference leads to unexpected result set

Followup to review input address commit: pass the new parameter type
to find_field_in_table_ref().
This commit is contained in:
Sergei Petrunia
2021-04-17 10:55:35 +03:00
committed by Alexey Botchkov
parent a4353c25ca
commit e4665f417b
3 changed files with 6 additions and 5 deletions

View File

@ -99,7 +99,7 @@ static bool init_fields(THD *thd, TABLE_LIST *tables,
Lex_cstring_strlen(find_fields->table_name),
Lex_cstring_strlen(find_fields->field_name)));
if (!(find_fields->field= find_field_in_tables(thd, field, tables, NULL,
table_map(0),
ignored_tables_list_t(NULL),
0, REPORT_ALL_ERRORS, 1,
TRUE)))
DBUG_RETURN(1);