mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
Bug#30795 Query on INFORMATION_SCHEMA.SCHEMATA, wrong result
skip the check of directory presence for 'information_schema' name mysql-test/r/information_schema.result: test result mysql-test/t/information_schema.test: test case sql/sql_show.cc: skip the check of directory presence for 'information_schema' name
This commit is contained in:
parent
a8b1160835
commit
fcc3be91f0
3 changed files with 12 additions and 1 deletions
|
@ -1552,4 +1552,8 @@ VIEW_DEFINITION
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM INFORMATION_SCHEMA.TABLES
|
FROM INFORMATION_SCHEMA.TABLES
|
||||||
DROP VIEW v1;
|
DROP VIEW v1;
|
||||||
|
SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA
|
||||||
|
WHERE SCHEMA_NAME ='information_schema';
|
||||||
|
SCHEMA_NAME
|
||||||
|
information_schema
|
||||||
End of 5.1 tests.
|
End of 5.1 tests.
|
||||||
|
|
|
@ -1188,4 +1188,10 @@ FROM INFORMATION_SCHEMA.TABLES;
|
||||||
SELECT VIEW_DEFINITION FROM INFORMATION_SCHEMA.VIEWS where TABLE_NAME = 'v1';
|
SELECT VIEW_DEFINITION FROM INFORMATION_SCHEMA.VIEWS where TABLE_NAME = 'v1';
|
||||||
DROP VIEW v1;
|
DROP VIEW v1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug#30795 Query on INFORMATION_SCHEMA.SCHEMATA, wrong result
|
||||||
|
#
|
||||||
|
SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA
|
||||||
|
WHERE SCHEMA_NAME ='information_schema';
|
||||||
|
|
||||||
--echo End of 5.1 tests.
|
--echo End of 5.1 tests.
|
||||||
|
|
|
@ -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 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];
|
char path[FN_REFLEN+16];
|
||||||
uint path_len;
|
uint path_len;
|
||||||
|
|
Loading…
Add table
Reference in a new issue