diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2021-04-20 14:44:24 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2021-04-21 10:21:48 +0400 |
commit | 502b769561760f35d2b612ab984906c8a4bb9b51 (patch) | |
tree | 497af9c4f44b6e715f68020674791d9efab20796 | |
parent | 41e368f22db02e5c907aa40ae8c5c8e34ded3db9 (diff) | |
download | mariadb-git-502b769561760f35d2b612ab984906c8a4bb9b51.tar.gz |
MDEV-17399 JSON_TABLE.
Aftermerge fixes.
-rw-r--r-- | mysql-test/suite/json/r/json_table.result | 2 | ||||
-rw-r--r-- | mysql-test/suite/perfschema/r/start_server_low_digest_sql_length.result | 4 | ||||
-rw-r--r-- | sql/json_table.cc | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/mysql-test/suite/json/r/json_table.result b/mysql-test/suite/json/r/json_table.result index d0a9021dd70..6f017c34133 100644 --- a/mysql-test/suite/json/r/json_table.result +++ b/mysql-test/suite/json/r/json_table.result @@ -585,7 +585,7 @@ select a from json_table('[[]]', '$' columns(a char(8) path '$' error on error)) ERROR HY000: Can't store an array or an object in the scalar column 'a' of JSON_TABLE 't'. show warnings; Level Code Message -Error 4177 Can't store an array or an object in the scalar column 'a' of JSON_TABLE 't'. +Error 4178 Can't store an array or an object in the scalar column 'a' of JSON_TABLE 't'. # # MDEV-JSON_TABLE: CREATE TABLE ignores NULL ON ERROR (implicit or explicit) and fails. # diff --git a/mysql-test/suite/perfschema/r/start_server_low_digest_sql_length.result b/mysql-test/suite/perfschema/r/start_server_low_digest_sql_length.result index 9ab986a1314..eefd4f86708 100644 --- a/mysql-test/suite/perfschema/r/start_server_low_digest_sql_length.result +++ b/mysql-test/suite/perfschema/r/start_server_low_digest_sql_length.result @@ -8,5 +8,5 @@ SELECT 1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1 #################################### SELECT event_name, digest, digest_text, sql_text FROM events_statements_history_long; event_name digest digest_text sql_text -statement/sql/select 36b60eb4c0a269b4d8e3c2037f5c6c36 SELECT ? + ? + SELECT ... -statement/sql/truncate eddd22a5c210f96a5160acbb5d7563b3 TRUNCATE TABLE truncat... +statement/sql/select 5169a25ba78dc5dc99487237f8459aa8 SELECT ? + ? + SELECT ... +statement/sql/truncate 48bb01298bb30bda20be141838160182 TRUNCATE TABLE truncat... diff --git a/sql/json_table.cc b/sql/json_table.cc index 68a62aa6762..12e70f8f3a3 100644 --- a/sql/json_table.cc +++ b/sql/json_table.cc @@ -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) |