mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 09:38:53 +01:00
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.
This commit is contained in:
parent
3573571852
commit
2aa6baddcb
@ -458,7 +458,8 @@ select viewname,'V' from pg_views where viewname like $mask";
|
|||||||
function &MetaColumns($table,$normalize=true)
|
function &MetaColumns($table,$normalize=true)
|
||||||
{
|
{
|
||||||
global $ADODB_FETCH_MODE;
|
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;
|
$schema = false;
|
||||||
$false = false;
|
$false = false;
|
||||||
$this->_findschema($table,$schema);
|
$this->_findschema($table,$schema);
|
||||||
|
Loading…
Reference in New Issue
Block a user