Changeset 2185

Show
Ignore:
Timestamp:
02/28/2008 02:51:26 PM (9 months ago)
Author:
zombor
Message:

Fixing a bug in escaping the table name in list_fields()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/drivers/Database/Pgsql.php

    r2171 r2185  
    286286  LEFT JOIN pg_attrdef 
    287287    ON (pg_class.oid=pg_attrdef.adrelid AND pg_attribute.attnum=pg_attrdef.adnum) 
    288 WHERE pg_class.relname=\''.$this->escape_table($table).'\' AND pg_attribute.attnum>=1 AND NOT pg_attribute.attisdropped 
     288WHERE pg_class.relname=\''.$this->escape_str($table).'\' AND pg_attribute.attnum>=1 AND NOT pg_attribute.attisdropped 
    289289ORDER BY pg_attribute.attnum'); 
    290290                $fields = array();