mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug#35428 When selecting from INFORMATION_SCHEMA tables, incomplete metadata
backport to Betony
This commit is contained in:
@ -3925,7 +3925,7 @@ const char *Natural_join_column::db_name()
|
||||
DBUG_ASSERT(!strcmp(table_ref->db,
|
||||
table_ref->table->s->db.str) ||
|
||||
(table_ref->schema_table &&
|
||||
table_ref->table->s->db.str[0] == 0));
|
||||
is_schema_db(table_ref->table->s->db.str)));
|
||||
return table_ref->db;
|
||||
}
|
||||
|
||||
@ -4143,7 +4143,7 @@ const char *Field_iterator_table_ref::get_db_name()
|
||||
*/
|
||||
DBUG_ASSERT(!strcmp(table_ref->db, table_ref->table->s->db.str) ||
|
||||
(table_ref->schema_table &&
|
||||
table_ref->table->s->db.str[0] == 0));
|
||||
is_schema_db(table_ref->table->s->db.str)));
|
||||
|
||||
return table_ref->db;
|
||||
}
|
||||
|
Reference in New Issue
Block a user