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:
Weny Xu
2024-03-15 14:15:18 +08:00
committed by GitHub
parent b6fac619a6
commit a52aedec5b
9 changed files with 136 additions and 9 deletions

View File

@@ -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;

View File

@@ -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;