mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 10:04:07 +02:00
ClickHouse: Fix for drop multiple tables and views
This commit is contained in:
@@ -188,11 +188,11 @@ if (isset($_GET["clickhouse"])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function drop_views($views) {
|
function drop_views($views) {
|
||||||
return queries("DROP VIEW " . implode(", ", array_map('table', $views)));
|
return drop_tables($views);
|
||||||
}
|
}
|
||||||
|
|
||||||
function drop_tables($tables) {
|
function drop_tables($tables) {
|
||||||
return queries("DROP TABLE " . implode(", ", array_map('table', $tables)));
|
return apply_queries("DROP TABLE", $tables);
|
||||||
}
|
}
|
||||||
|
|
||||||
function connect() {
|
function connect() {
|
||||||
|
Reference in New Issue
Block a user