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) {
|
function connect($server, $username, $password) {
|
||||||
global $adminer;
|
global $adminer;
|
||||||
$db = $adminer->database();
|
$db = $adminer->database();
|
||||||
$string = "pgsql:host='" . str_replace(":", "' port='", addcslashes($server, "'\\")) . "' options='-c client_encoding=utf8'";
|
$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
|
||||||
$this->dsn("$string dbname='" . ($db != "" ? addcslashes($db, "'\\") : "postgres") . "'", $username, $password);
|
|
||||||
//! connect without DB in case of an error
|
//! connect without DB in case of an error
|
||||||
return true;
|
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: Fix dollar-quoted syntax highlighting (bug #738)
|
||||||
PostgreSQL: Do not show view definition from other schema (PR #392)
|
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: 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)
|
PostgreSQL 10: Support GENERATED ALWAYS BY IDENTITY (PR #386)
|
||||||
MS SQL: Don't truncate comments to 30 chars (PR #376)
|
MS SQL: Don't truncate comments to 30 chars (PR #376)
|
||||||
Editor: Cast to string when searching (bug #325)
|
Editor: Cast to string when searching (bug #325)
|
||||||
|
|
Loading…
Reference in a new issue