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

Add back function to get driver name (fix #919)

This reverts fe88f83.
This commit is contained in:
Jakub Vrana
2025-03-17 08:07:24 +01:00
parent a460019535
commit e8b15c99f4
4 changed files with 16 additions and 7 deletions

View File

@@ -61,7 +61,7 @@ if (isset($_GET["elastic"])) {
function query($path, array $content = null, $method = 'GET') {
// Support for global search through all tables
if ($path != "" && $path[0] == "S" && preg_match('/SELECT 1 FROM ([^ ]+) WHERE (.+) LIMIT ([0-9]+)/', $path, $matches)) {
$driver = get_driver();
$driver = driver();
$where = explode(" AND ", $matches[2]);

View File

@@ -166,7 +166,7 @@ if (isset($_GET["mongo"])) {
}
function fields($table) {
$driver = get_driver();
$driver = driver();
$fields = fields_from_edit();
if (!$fields) {
$result = $driver->select($table, array("*"), null, null, array(), 10);