mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
show correct collation for PostgresSQL
This commit is contained in:
committed by
Jakub Vrana
parent
96be913994
commit
1ce0a9aa94
@@ -292,7 +292,7 @@ if (isset($_GET["pgsql"])) {
|
|||||||
|
|
||||||
function db_collation($db, $collations) {
|
function db_collation($db, $collations) {
|
||||||
global $connection;
|
global $connection;
|
||||||
return $connection->result("SHOW LC_COLLATE"); //! respect $db
|
return $connection->result("SELECT datcollate FROM pg_database WHERE datname = " . q($db));
|
||||||
}
|
}
|
||||||
|
|
||||||
function engines() {
|
function engines() {
|
||||||
|
Reference in New Issue
Block a user