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

MDEV-17399 JSON_TABLE.

Aftermerge fixes.
This commit is contained in:
Alexey Botchkov
2021-04-20 14:44:24 +04:00
parent 41e368f22d
commit 502b769561
3 changed files with 5 additions and 4 deletions

View File

@ -716,6 +716,7 @@ bool Create_json_table::add_json_table_fields(THD *thd, TABLE *table,
uint fieldnr= 0;
MEM_ROOT *mem_root_save= thd->mem_root;
List_iterator_fast<Json_table_column> jc_i(jt->m_columns);
Column_derived_attributes da(NULL);
DBUG_ENTER("add_json_table_fields");
thd->mem_root= &table->mem_root;
@ -736,7 +737,7 @@ bool Create_json_table::add_json_table_fields(THD *thd, TABLE *table,
sql_f->charset= &my_charset_utf8mb4_general_ci;
if (sql_f->prepare_stage1(thd, thd->mem_root, table->file,
table->file->ha_table_flags()))
table->file->ha_table_flags(), &da))
goto err_exit;
while ((jc2= it2++) != jc)