oops, actually commit the hasObjectID fix
authorGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Wed, 1 Apr 2009 03:10:46 +0000 (23:10 -0400)
committerGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Wed, 1 Apr 2009 03:10:46 +0000 (23:10 -0400)
classes/database/Postgres.php

index a0a3c372d50fbf2465ab0d7317ffd8b8e67e4a58..a95af3fd0d2035facb2cd9cffc0ad758adbf482b 100755 (executable)
@@ -1052,7 +1052,7 @@ class Postgres extends ADODB_base {
         * Checks to see whether or not a table has a unique id column
         * @param $table The table name
         * @return True if it has a unique id, false otherwise
-        * @return -99 error
+        * @return null error
         **/
        function hasObjectID($table) {
                $this->clean($table);
@@ -1061,7 +1061,7 @@ class Postgres extends ADODB_base {
                        AND relnamespace = (SELECT oid FROM pg_catalog.pg_namespace WHERE nspname='{$this->_schema}')";
 
                $rs = $this->selectSet($sql);
-               if ($rs->recordCount() != 1) return -99;
+               if ($rs->recordCount() != 1) return null;
                else {
                        $rs->fields['relhasoids'] = $this->phpBool($rs->fields['relhasoids']);
                        return $rs->fields['relhasoids'];