1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 16:44:17 +02:00

Set application_name (thanks to juzna)

This commit is contained in:
Jakub Vrana
2011-08-23 14:23:48 +02:00
parent 2dd39c6df5
commit e6843dfbc1

View File

@@ -161,6 +161,9 @@ if (isset($_GET["pgsql"])) {
$connection = new Min_DB;
$credentials = $adminer->credentials();
if ($connection->connect($credentials[0], $credentials[1], $credentials[2])) {
if ($connection->server_info >= 9) {
$connection->query("SET application_name = 'Adminer'");
}
return $connection;
}
return $connection->error;