diff options
author | Guillaume (ioguix) de Rorthais | 2010-09-27 23:05:38 +0000 |
---|---|---|
committer | Guillaume (ioguix) de Rorthais | 2010-09-27 23:05:38 +0000 |
commit | ea73ca2dc447b36eb080e4c026f31a223122a09c (patch) | |
tree | 31c9c334f3edc3d9c5805a88da8df8ddd8fc8618 | |
parent | 8bf7bd87cc4a69b05f4c1bee908542ac70baab61 (diff) |
Remove a useless reference to global var $data from the Postgres class itself
-rwxr-xr-x | classes/database/Postgres.php | 3 | ||||
-rw-r--r-- | classes/database/Postgres80.php | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/classes/database/Postgres.php b/classes/database/Postgres.php index 0178e327..f579f299 100755 --- a/classes/database/Postgres.php +++ b/classes/database/Postgres.php @@ -3498,11 +3498,10 @@ class Postgres extends ADODB_base { * @return a recordset */ function getConstraintsWithFields($table) { - global $data; $c_schema = $this->_schema; $this->clean($c_schema); - $data->clean($table); + $this->clean($table); // get the max number of col used in a constraint for the table $sql = "SELECT DISTINCT diff --git a/classes/database/Postgres80.php b/classes/database/Postgres80.php index b6a6b02b..b64327b7 100644 --- a/classes/database/Postgres80.php +++ b/classes/database/Postgres80.php @@ -176,11 +176,10 @@ class Postgres80 extends Postgres81 { * @return a recordset */ function getConstraintsWithFields($table) { - global $data; $c_schema = $this->_schema; $this->clean($c_schema); - $data->clean($table); + $this->clean($table); // get the max number of col used in a constraint for the table $sql = "SELECT DISTINCT |