]> git.joonet.de Git - adminer.git/commitdiff
ClickHouse: Fix for drop multiple tables and views
authorsartor <sartorua@gmail.com>
Sat, 20 Oct 2018 16:43:10 +0000 (19:43 +0300)
committerJakub Vrana <jakub@vrana.cz>
Sat, 27 Oct 2018 17:32:10 +0000 (19:32 +0200)
adminer/drivers/clickhouse.inc.php

index 37631a5c302e53a5527e359b4892d4496a9f4d62..a9f0be875344369c8fbdcc89fe69ec5aad84dc0d 100644 (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() {