mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-14 17:23:09 +00:00
feat: implement drop multiple tables (#4085)
* feat: implement drop multiple tables * fix: pass fmt and clippy checks * add: drop multiple sqlness test * update: accept review suggestions * update: accept reviem suggestion Co-authored-by: Weny Xu <wenymedia@gmail.com> * fix: pass clippy check --------- Co-authored-by: Weny Xu <wenymedia@gmail.com>
This commit is contained in:
@@ -543,7 +543,9 @@ pub fn check_permission(
|
||||
validate_param(&stmt.source_name, query_ctx)?;
|
||||
}
|
||||
Statement::DropTable(drop_stmt) => {
|
||||
validate_param(drop_stmt.table_name(), query_ctx)?;
|
||||
for table_name in drop_stmt.table_names() {
|
||||
validate_param(table_name, query_ctx)?;
|
||||
}
|
||||
}
|
||||
Statement::ShowTables(stmt) => {
|
||||
validate_db_permission!(stmt, query_ctx);
|
||||
|
||||
Reference in New Issue
Block a user