not using persistens connections for postgres in setup: if a transaction fails, setup dont even finds the database anymore

This commit is contained in:
Ralf Becker 2004-06-28 09:29:44 +00:00
parent 58f8d6ff21
commit 7d74f12e84

View File

@ -60,6 +60,10 @@
$GLOBALS['phpgw_info']['server']['db_type'] = $GLOBALS['phpgw_domain'][$this->ConfigDomain]['db_type']; $GLOBALS['phpgw_info']['server']['db_type'] = $GLOBALS['phpgw_domain'][$this->ConfigDomain]['db_type'];
if ($GLOBALS['phpgw_info']['server']['db_type'] == 'pgsql')
{
$GLOBALS['phpgw_info']['server']['db_persistent'] = False;
}
$this->db = CreateObject('phpgwapi.db'); $this->db = CreateObject('phpgwapi.db');
$this->db->Host = $GLOBALS['phpgw_domain'][$this->ConfigDomain]['db_host']; $this->db->Host = $GLOBALS['phpgw_domain'][$this->ConfigDomain]['db_host'];
$this->db->Port = $GLOBALS['phpgw_domain'][$this->ConfigDomain]['db_port']; $this->db->Port = $GLOBALS['phpgw_domain'][$this->ConfigDomain]['db_port'];