mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-05 21:02:58 +00:00
test(sqlness): release databases after tests (#3648)
This commit is contained in:
@@ -21,3 +21,7 @@ show databases;
|
||||
| public |
|
||||
+--------------------+
|
||||
|
||||
drop database 'illegal-database';
|
||||
|
||||
Affected Rows: 0
|
||||
|
||||
|
||||
@@ -5,3 +5,5 @@ create database 'illegal-database';
|
||||
create database '㊙️database';
|
||||
|
||||
show databases;
|
||||
|
||||
drop database 'illegal-database';
|
||||
|
||||
@@ -98,6 +98,10 @@ drop table abcdefge;
|
||||
|
||||
Affected Rows: 0
|
||||
|
||||
drop database upper_case_table_name;
|
||||
|
||||
Affected Rows: 0
|
||||
|
||||
use public;
|
||||
|
||||
Affected Rows: 0
|
||||
|
||||
@@ -40,4 +40,6 @@ desc table abcdefge;
|
||||
|
||||
drop table abcdefge;
|
||||
|
||||
drop database upper_case_table_name;
|
||||
|
||||
use public;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -75,3 +75,7 @@ drop table "AnotherSchema"."MemTotal";
|
||||
|
||||
Affected Rows: 0
|
||||
|
||||
drop schema "AnotherSchema";
|
||||
|
||||
Affected Rows: 0
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user