[Phplib-users] db_pgsql.inc error?
Brought to you by:
nhruby,
richardarcher
|
From: Mike G. <Mik...@sa...> - 2002-09-30 13:38:42
|
The function connect in db_pgsql.inc reads:
function connect() {
if ( 0 == $this->Link_ID ) {
$cstr = "dbname=".$this->Database.
$this->ifadd($this->Host, "host=").
$this->ifadd($this->Port, "port=").
$this->ifadd($this->User, "user=").
$this->ifadd($this->Password, "password=");
$this->Link_ID=pg_pconnect($cstr);
if (!$this->Link_ID) {
$this->halt("Link-ID == false, pconnect
failed");
}
}
}
It would seem to me that it should be:
function connect() {
if ( 0 == $this->Link_ID ) {
$cstr = "dbname=".$this->Database.
$cstr .= $this->ifadd($this->Host, "host=").
$cstr .= $this->ifadd($this->Port, "port=").
$cstr .= $this->ifadd($this->User, "user=").
$cstr .= $this->ifadd($this->Password, "password=");
$this->Link_ID=pg_pconnect($cstr);
if (!$this->Link_ID) {
$this->halt("Link-ID == false, pconnect
failed");
}
}
}
Yet it seems to work as it is. What am I missing?
Cheers!
Mike Green
|