From a4b3f4fecb9fa962706f66b3c2ea1913511f5106 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 6 Sep 2005 10:20:56 +0000 Subject: [PATCH] added patch from raphaelpereira-AT-gmail.com to allow creation of the DB under Postgres again --- phpgwapi/inc/adodb/drivers/adodb-postgres64.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/adodb/drivers/adodb-postgres64.inc.php b/phpgwapi/inc/adodb/drivers/adodb-postgres64.inc.php index 1b20eb0b61..303d791240 100644 --- a/phpgwapi/inc/adodb/drivers/adodb-postgres64.inc.php +++ b/phpgwapi/inc/adodb/drivers/adodb-postgres64.inc.php @@ -714,7 +714,7 @@ WHERE c2.relname=\'%s\' or c2.relname=lower(\'%s\')'; if (!empty($this->_connectionID)) { $this->_errorMsg = @pg_last_error($this->_connectionID); - } else $this->_errorMsg = @pg_last_error(); + } else $this->_errorMsg = DB_ERROR_CONNECT_FAILED; } else { if (empty($this->_connectionID)) $this->_errorMsg = @pg_errormessage(); else $this->_errorMsg = @pg_errormessage($this->_connectionID);