PostgreSQL PDO: Support PgBouncer, unsupport PostgreSQL < 9.1 (bug #771)
This commit is contained in:
parent
b2e0d9f396
commit
7edf80f636
|
@ -150,8 +150,7 @@ if (isset($_GET["pgsql"])) {
|
|||
function connect($server, $username, $password) {
|
||||
global $adminer;
|
||||
$db = $adminer->database();
|
||||
$string = "pgsql:host='" . str_replace(":", "' port='", addcslashes($server, "'\\")) . "' options='-c client_encoding=utf8'";
|
||||
$this->dsn("$string dbname='" . ($db != "" ? addcslashes($db, "'\\") : "postgres") . "'", $username, $password);
|
||||
$this->dsn("pgsql:host='" . str_replace(":", "' port='", addcslashes($server, "'\\")) . "' client_encoding=utf8 dbname='" . ($db != "" ? addcslashes($db, "'\\") : "postgres") . "'", $username, $password); //! client_encoding is supported since 9.1 but we can't yet use min_version here
|
||||
//! connect without DB in case of an error
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ PostgreSQL: Export all FKs after all CREATE TABLE (PR #351)
|
|||
PostgreSQL: Fix dollar-quoted syntax highlighting (bug #738)
|
||||
PostgreSQL: Do not show view definition from other schema (PR #392)
|
||||
PostgreSQL: Use bigserial for bigint auto increment (bug #765, regression from 3.0.0)
|
||||
PostgreSQL PDO: Support PgBouncer, unsupport PostgreSQL < 9.1 (bug #771)
|
||||
PostgreSQL 10: Support GENERATED ALWAYS BY IDENTITY (PR #386)
|
||||
MS SQL: Don't truncate comments to 30 chars (PR #376)
|
||||
Editor: Cast to string when searching (bug #325)
|
||||
|
|
Loading…
Reference in a new issue