show correct collation for PostgresSQL

This commit is contained in:
Oliver Tušla 2020-06-09 20:17:12 +02:00 committed by Jakub Vrana
parent 96be913994
commit 1ce0a9aa94

View file

@ -292,7 +292,7 @@ if (isset($_GET["pgsql"])) {
function db_collation($db, $collations) {
global $connection;
return $connection->result("SHOW LC_COLLATE"); //! respect $db
return $connection->result("SELECT datcollate FROM pg_database WHERE datname = " . q($db));
}
function engines() {