ClickHouse: Fix for drop multiple tables and views
This commit is contained in:
parent
9447d97a6a
commit
3127c0d95e
|
@ -188,11 +188,11 @@ if (isset($_GET["clickhouse"])) {
|
|||
}
|
||||
|
||||
function drop_views($views) {
|
||||
return queries("DROP VIEW " . implode(", ", array_map('table', $views)));
|
||||
return drop_tables($views);
|
||||
}
|
||||
|
||||
function drop_tables($tables) {
|
||||
return queries("DROP TABLE " . implode(", ", array_map('table', $tables)));
|
||||
return apply_queries("DROP TABLE", $tables);
|
||||
}
|
||||
|
||||
function connect() {
|
||||
|
|
Loading…
Reference in a new issue