mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-13 16:52:56 +00:00
* feat: create database with options * fix: clippy * fix: clippy * feat: rebase and add Display test * feat: sqlness test for creating database with options * address comments Signed-off-by: tison <wander4096@gmail.com> * fixup tests Signed-off-by: tison <wander4096@gmail.com> * catch up Signed-off-by: tison <wander4096@gmail.com> * DefaultOnNull Signed-off-by: tison <wander4096@gmail.com> --------- Signed-off-by: tison <wander4096@gmail.com> Co-authored-by: tison <wander4096@gmail.com>
37 lines
692 B
Plaintext
37 lines
692 B
Plaintext
create database '㊙️database';
|
||
|
||
Error: 1002(Unexpected), Unexpected, violated: Invalid database name: ㊙️database
|
||
|
||
create database illegal-database;
|
||
|
||
Error: 1001(Unsupported), SQL statement is not supported: create database illegal-database;, keyword: -
|
||
|
||
create database 'illegal-database';
|
||
|
||
Affected Rows: 1
|
||
|
||
create database mydb with (ttl = '1h');
|
||
|
||
Affected Rows: 1
|
||
|
||
show databases;
|
||
|
||
+--------------------+
|
||
| Database |
|
||
+--------------------+
|
||
| greptime_private |
|
||
| illegal-database |
|
||
| information_schema |
|
||
| mydb |
|
||
| public |
|
||
+--------------------+
|
||
|
||
drop database 'illegal-database';
|
||
|
||
Affected Rows: 0
|
||
|
||
drop database mydb;
|
||
|
||
Affected Rows: 0
|
||
|