diff --git a/tests/cases/standalone/common/create/create_database.result b/tests/cases/standalone/common/create/create_database.result index da409471c2bb..9c1e6a095623 100644 --- a/tests/cases/standalone/common/create/create_database.result +++ b/tests/cases/standalone/common/create/create_database.result @@ -21,3 +21,7 @@ show databases; | public | +--------------------+ +drop database 'illegal-database'; + +Affected Rows: 0 + diff --git a/tests/cases/standalone/common/create/create_database.sql b/tests/cases/standalone/common/create/create_database.sql index 0116e2bcce1a..4c6a854f8b3b 100644 --- a/tests/cases/standalone/common/create/create_database.sql +++ b/tests/cases/standalone/common/create/create_database.sql @@ -5,3 +5,5 @@ create database 'illegal-database'; create database '㊙️database'; show databases; + +drop database 'illegal-database'; diff --git a/tests/cases/standalone/common/create/upper_case_table_name.result b/tests/cases/standalone/common/create/upper_case_table_name.result index 13a00fd8d913..33e186a63d5b 100644 --- a/tests/cases/standalone/common/create/upper_case_table_name.result +++ b/tests/cases/standalone/common/create/upper_case_table_name.result @@ -98,6 +98,10 @@ drop table abcdefge; Affected Rows: 0 +drop database upper_case_table_name; + +Affected Rows: 0 + use public; Affected Rows: 0 diff --git a/tests/cases/standalone/common/create/upper_case_table_name.sql b/tests/cases/standalone/common/create/upper_case_table_name.sql index 5cade9edfd05..76625e0159af 100644 --- a/tests/cases/standalone/common/create/upper_case_table_name.sql +++ b/tests/cases/standalone/common/create/upper_case_table_name.sql @@ -40,4 +40,6 @@ desc table abcdefge; drop table abcdefge; +drop database upper_case_table_name; + use public; diff --git a/tests/cases/standalone/common/show/show_databases_tables.result b/tests/cases/standalone/common/show/show_databases_tables.result index 90fc27f88bb5..1f35687d20ed 100644 --- a/tests/cases/standalone/common/show/show_databases_tables.result +++ b/tests/cases/standalone/common/show/show_databases_tables.result @@ -1,14 +1,12 @@ show databases; -+-----------------------+ -| Database | -+-----------------------+ -| greptime_private | -| illegal-database | -| information_schema | -| public | -| upper_case_table_name | -+-----------------------+ ++--------------------+ +| Database | ++--------------------+ +| greptime_private | +| information_schema | +| public | ++--------------------+ use information_schema; diff --git a/tests/cases/standalone/common/system/information_schema.result b/tests/cases/standalone/common/system/information_schema.result index 76e565bec5bb..c25cea096cf0 100644 --- a/tests/cases/standalone/common/system/information_schema.result +++ b/tests/cases/standalone/common/system/information_schema.result @@ -501,14 +501,12 @@ desc table schemata; select * from schemata where catalog_name = 'greptime' and schema_name != 'public' order by catalog_name, schema_name; -+--------------+-----------------------+----------------------------+------------------------+----------+ -| catalog_name | schema_name | default_character_set_name | default_collation_name | sql_path | -+--------------+-----------------------+----------------------------+------------------------+----------+ -| greptime | greptime_private | utf8 | utf8_bin | | -| greptime | illegal-database | utf8 | utf8_bin | | -| greptime | information_schema | utf8 | utf8_bin | | -| greptime | upper_case_table_name | utf8 | utf8_bin | | -+--------------+-----------------------+----------------------------+------------------------+----------+ ++--------------+--------------------+----------------------------+------------------------+----------+ +| catalog_name | schema_name | default_character_set_name | default_collation_name | sql_path | ++--------------+--------------------+----------------------------+------------------------+----------+ +| greptime | greptime_private | utf8 | utf8_bin | | +| greptime | information_schema | utf8 | utf8_bin | | ++--------------+--------------------+----------------------------+------------------------+----------+ -- test engines select * from engines; diff --git a/tests/cases/standalone/common/tql/case_sensitive.result b/tests/cases/standalone/common/tql/case_sensitive.result index e98e41a71b3e..e4e305a27e6c 100644 --- a/tests/cases/standalone/common/tql/case_sensitive.result +++ b/tests/cases/standalone/common/tql/case_sensitive.result @@ -75,3 +75,7 @@ drop table "AnotherSchema"."MemTotal"; Affected Rows: 0 +drop schema "AnotherSchema"; + +Affected Rows: 0 + diff --git a/tests/cases/standalone/common/tql/case_sensitive.sql b/tests/cases/standalone/common/tql/case_sensitive.sql index 6e75974abfc9..2aea15bb8387 100644 --- a/tests/cases/standalone/common/tql/case_sensitive.sql +++ b/tests/cases/standalone/common/tql/case_sensitive.sql @@ -37,3 +37,5 @@ tql eval (0,10,'5s') sum(MemAvailable / 4) + sum({__name__="AnotherSchema.MemTot drop table "MemAvailable"; drop table "AnotherSchema"."MemTotal"; + +drop schema "AnotherSchema";