From: Ilia Alshanetsky Date: Thu, 3 Feb 2005 22:24:50 +0000 (+0000) Subject: Use the created connection string. X-Git-Tag: RELEASE_0_2~91 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=996b464e302544fc9ec1d778ae81f9e27bba33d1;p=php Use the created connection string. --- diff --git a/ext/pdo_pgsql/pgsql_driver.c b/ext/pdo_pgsql/pgsql_driver.c index 2970476486..2ed09c2dd7 100644 --- a/ext/pdo_pgsql/pgsql_driver.c +++ b/ext/pdo_pgsql/pgsql_driver.c @@ -354,7 +354,7 @@ static int pdo_pgsql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_ spprintf(&conn_str, 0, "%s password=%s", dbh->data_source, dbh->password); } - H->server = PQconnectdb(dbh->data_source); + H->server = PQconnectdb(conn_str); if (conn_str != dbh->data_source) { efree(conn_str);