fix a bug in the wizzard view creator
authorioguix <ioguix>
Mon, 28 May 2007 16:49:08 +0000 (16:49 +0000)
committerioguix <ioguix>
Mon, 28 May 2007 16:49:08 +0000 (16:49 +0000)
classes/database/Postgres73.php

index 5bb1779fdf05f0c73d2eaba2e4fdd23e2b6a71fa..218e2edb4f303e132f14f7b9d54226b44da859db 100644 (file)
@@ -4,7 +4,7 @@
  * A class that implements the DB interface for Postgres
  * Note: This class uses ADODB and returns RecordSets.
  *
- * $Id: Postgres73.php,v 1.160.2.1 2007/04/18 15:50:21 mr-russ Exp $
+ * $Id: Postgres73.php,v 1.160.2.2 2007/05/28 16:49:08 ioguix Exp $
  */
 
 // @@@ THOUGHT: What about inherits? ie. use of ONLY???
@@ -1211,8 +1211,8 @@ class Postgres73 extends Postgres72 {
                if (!is_array($tables)) return -1;
 
                
-               $tables_list = "'{$tables[0]['schemaname']}'";
-               $schema_list = "'{$tables[0]['tablename']}'";
+               $tables_list = "'{$tables[0]['tablename']}'";
+               $schema_list = "'{$tables[0]['schemaname']}'";
                $schema_tables_list = "'{$tables[0]['schemaname']}.{$tables[0]['tablename']}'";
                for ($i = 1; $i < sizeof($tables); $i++) {
                        $tables_list .= ", '{$tables[$i]['tablename']}'";