summaryrefslogtreecommitdiff
path: root/sql/json_table.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2023-03-17 16:26:16 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2023-03-17 16:26:16 +0200
commite9e0cf67c07291a4934ddcf28560cd63ade3d23c (patch)
treeb46e3bc2afeeea735a8ae42ad8ccd0de586bc584 /sql/json_table.cc
parent605b8fd8462b17a5681e33a3691b8d4c7bf862a7 (diff)
parent6e58d5ab6a42f22f9c705faea83fbc8889d429c3 (diff)
downloadmariadb-git-bb-11.1-mdev-26137-unsquashed.tar.gz
Diffstat (limited to 'sql/json_table.cc')
-rw-r--r--sql/json_table.cc5
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)