1
0
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:
Sergey Glukhov
2009-10-23 14:19:54 +05:00
parent 0a0f50e4ab
commit 676c12e2d4
9 changed files with 221 additions and 195 deletions

View File

@ -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;
}