From a74b27a6cbf57a38e6ed95e26e2596eff9b7ece6 Mon Sep 17 00:00:00 2001 From: "Guillaume (ioguix) de Rorthais" Date: Tue, 31 Mar 2009 23:10:46 -0400 Subject: [PATCH] oops, actually commit the hasObjectID fix --- classes/database/Postgres.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/database/Postgres.php b/classes/database/Postgres.php index a0a3c372..a95af3fd 100755 --- a/classes/database/Postgres.php +++ b/classes/database/Postgres.php @@ -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']; -- 2.39.5