mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-20 05:05:38 +00:00
added test
This commit is contained in:
parent
bae407e958
commit
6687f37329
@ -49,6 +49,14 @@ static void createInformationSchemaView(ContextMutablePtr context, IDatabase & d
|
||||
database.getTableDataPath(ast_create), context, true).second;
|
||||
|
||||
database.createTable(context, ast_create.getTable(), view, ast);
|
||||
if (ast_create.getTable() == "tables")
|
||||
{
|
||||
database.createTable(context, Poco::toUpper(ast_create.getTable()), view, ast);
|
||||
}
|
||||
else if (ast_create.getTable() == "TABLES")
|
||||
{
|
||||
database.createTable(context, Poco::toLower(ast_create.getTable()), view, ast);
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
|
@ -190,3 +190,15 @@ def test_information_schema():
|
||||
)
|
||||
== "1\n"
|
||||
)
|
||||
assert (
|
||||
node.query(
|
||||
"SELECT count() FROM information_schema.TABLES WHERE table_name='TABLES'"
|
||||
)
|
||||
== "3\n"
|
||||
)
|
||||
assert (
|
||||
node.query(
|
||||
"SELECT count() FROM INFORMATION_SCHEMA.tables WHERE table_name='tables'"
|
||||
)
|
||||
== "3\n"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user