Fix: property must be set if success

This commit is contained in:
Laurent Destailleur 2012-07-09 14:58:42 +02:00
parent c39dadea14
commit 501dccabc2

View File

@ -374,6 +374,12 @@ class DoliDb
$con_string = "host='".$host."' port='".$port."' dbname='".$name."' user='".$login."' password='".$passwd."'"; $con_string = "host='".$host."' port='".$port."' dbname='".$name."' user='".$login."' password='".$passwd."'";
$this->db = pg_connect($con_string); $this->db = pg_connect($con_string);
if ($this->db)
{
$this->database_name = $name;
pg_set_error_verbosity($this->db, PGSQL_ERRORS_VERBOSE); // Set verbosity to max
}
} }
else else
{ {