Skip to content

Commit

Permalink
Remove a useless reference to global var $data from the Postgres clas…
Browse files Browse the repository at this point in the history
…s itself
  • Loading branch information
ioguix committed Sep 27, 2010
1 parent 8bf7bd8 commit ea73ca2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions classes/database/Postgres.php
Expand Up @@ -3498,11 +3498,10 @@ function getConstraints($table) {
* @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
Expand Down
3 changes: 1 addition & 2 deletions classes/database/Postgres80.php
Expand Up @@ -176,11 +176,10 @@ function _alterTable($tblrs, $name, $owner, $schema, $comment, $tablespace) {
* @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
Expand Down

0 comments on commit ea73ca2

Please sign in to comment.