diff options
Diffstat (limited to 'sql/json_table.cc')
-rw-r--r-- | sql/json_table.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/json_table.cc b/sql/json_table.cc index d404a54bc3f..ded221269ad 100644 --- a/sql/json_table.cc +++ b/sql/json_table.cc @@ -792,8 +792,9 @@ bool Create_json_table::add_json_table_fields(THD *thd, TABLE *table, */ sql_f->length= sql_f->char_length; - if (sql_f->prepare_stage1(thd, thd->mem_root, table->file, - table->file->ha_table_flags(), &da)) + if (sql_f->prepare_stage1(thd, thd->mem_root, + COLUMN_DEFINITION_TABLE_FIELD, + &da)) goto err_exit; while ((jc2= it2++) != jc) |