1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 10:04:07 +02:00

CockroachDB: Display version

This commit is contained in:
Jakub Vrana
2025-03-13 11:24:49 +01:00
parent 44d26a9dd3
commit 7636c253fb
3 changed files with 4 additions and 0 deletions

View File

@@ -326,6 +326,8 @@ if (isset($_GET["pgsql"])) {
if (min_version(9, 0, $connection)) {
$connection->query("SET application_name = 'Adminer'");
}
$crdb_version = $connection->result("SHOW crdb_version");
$connection->server_info .= ($crdb_version ? "-" . preg_replace('~ \(.*~', '', $crdb_version) : "");
return $connection;
}
return $connection->error;