From 2aa6baddcb5183c4be0be383cb48242338debf29 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 1 Jun 2010 12:24:29 +0000 Subject: [PATCH] postgres: fix for problem with db_backup/update -> no MetaColumns retrieved anymore: if tablenames are quoted, remove the quotes as the use of tablenames in MetaColumns is for comparsion of content of fields in postgres system tables; quoting tablenames breaks comparsion here. --- phpgwapi/inc/adodb/drivers/adodb-postgres64.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/adodb/drivers/adodb-postgres64.inc.php b/phpgwapi/inc/adodb/drivers/adodb-postgres64.inc.php index eafd5473d2..84e944c592 100644 --- a/phpgwapi/inc/adodb/drivers/adodb-postgres64.inc.php +++ b/phpgwapi/inc/adodb/drivers/adodb-postgres64.inc.php @@ -458,7 +458,8 @@ select viewname,'V' from pg_views where viewname like $mask"; function &MetaColumns($table,$normalize=true) { global $ADODB_FETCH_MODE; - + //if tablenames are quoted, remove the quotes as the tablenames here are used for comparsion of content of fields in postgres system tables + if (!empty($this->nameQuote) && !(strpos($table,$this->nameQuote)===false)) $table = str_replace($this->nameQuote,'',$table); $schema = false; $false = false; $this->_findschema($table,$schema); @@ -1035,4 +1036,4 @@ class ADORecordSet_postgres64 extends ADORecordSet{ } } -?> \ No newline at end of file +?>