ClickHouse: Fix for drop multiple tables and views

This commit is contained in:
sartor 2018-10-20 19:43:10 +03:00 committed by Jakub Vrana
parent 9447d97a6a
commit 3127c0d95e

View file

@ -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() {