Skip to content

Commit

Permalink
MDEV-17399 JSON_TABLE.
Browse files Browse the repository at this point in the history
test crashing after any_db assinged nonzero lenght fixed.
  • Loading branch information
Alexey Botchkov committed Apr 21, 2021
1 parent 6bac48d commit 1db1f85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 1db1f85

Please sign in to comment.