1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Bug#30795 Query on INFORMATION_SCHEMA.SCHEMATA, wrong result

skip the check of directory presence for 'information_schema' name
This commit is contained in:
gluh@mysql.com/eagle.(none)
2007-09-28 17:33:30 +05:00
parent ccccad7058
commit 1494eabc85
3 changed files with 12 additions and 1 deletions

View File

@ -3339,7 +3339,8 @@ int fill_schema_schemata(THD *thd, TABLE_LIST *tables, COND *cond)
/*
If we have lookup db value we should check that the database exists
*/
if(lookup_field_vals.db_value.str && !lookup_field_vals.wild_db_value)
if(lookup_field_vals.db_value.str && !lookup_field_vals.wild_db_value &&
!with_i_schema)
{
char path[FN_REFLEN+16];
uint path_len;