mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-07 22:02:56 +00:00
feat: implement the drop database parser (#3521)
* refactor: refactor drop table parser * feat: implement drop database parser * fix: canonicalize name of create database * test: update sqlness result * Update src/operator/src/statement.rs Co-authored-by: Ruihang Xia <waynestxia@gmail.com> --------- Co-authored-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
@@ -120,7 +120,7 @@ SHOW TABLES FROM public WHERE Tables = 'numbers';
|
||||
|
||||
DROP SCHEMA test_public_schema;
|
||||
|
||||
Error: 1001(Unsupported), SQL statement is not supported: DROP SCHEMA test_public_schema;, keyword: SCHEMA
|
||||
Error: 1001(Unsupported), Not supported: Drop Database
|
||||
|
||||
SELECT * FROM test_public_schema.hello;
|
||||
|
||||
|
||||
@@ -447,7 +447,7 @@ Affected Rows: 0
|
||||
|
||||
drop schema my_db;
|
||||
|
||||
Error: 1001(Unsupported), SQL statement is not supported: drop schema my_db;, keyword: schema
|
||||
Error: 1001(Unsupported), Not supported: Drop Database
|
||||
|
||||
use information_schema;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user