Commit 1db1f859 authored by Alexey Botchkov's avatar Alexey Botchkov

MDEV-17399 JSON_TABLE.

test crashing after any_db assinged nonzero lenght fixed.
parent 6bac48d0
......@@ -6733,8 +6733,8 @@ const char *Natural_join_column::safe_db_name()
ensure consistency. An exception are I_S schema tables, which
are inconsistent in this respect.
*/
DBUG_ASSERT(!cmp(&table_ref->db,
&table_ref->table->s->db) ||
DBUG_ASSERT(!cmp(&table_ref->db, &table_ref->table->s->db) ||
table_ref->table_function ||
(table_ref->schema_table &&
is_infoschema_db(&table_ref->table->s->db)) ||
table_ref->is_materialized_derived());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment