1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

ClickHouse: Check for allow_url_fopen

This commit is contained in:
Jakub Vrana
2025-03-06 14:30:50 +01:00
parent 5fdaae27dc
commit d268e0ebb4

View File

@@ -6,6 +6,7 @@ add_driver("clickhouse", "ClickHouse (alpha)");
if (isset($_GET["clickhouse"])) {
define("DRIVER", "clickhouse");
if (ini_bool('allow_url_fopen')) {
class Db {
var $extension = "JSON", $server_info, $errno, $_result, $error, $_url;
var $_db = 'default';
@@ -128,7 +129,7 @@ if (isset($_GET["clickhouse"])) {
return $return;
}
}
}
class Driver extends SqlDriver {
static $possibleDrivers = array("allow_url_fopen");