Postgres::hasObjectID PHP Метод

hasObjectID() публичный Метод

Checks to see whether or not a table has a unique id column
public hasObjectID ( $table ) : null
$table The table name
Результат null if it has a unique id, false otherwise
    function hasObjectID($table)
    {
        $c_schema = $this->_schema;
        $this->clean($c_schema);
        $this->clean($table);
        $sql = "SELECT relhasoids FROM pg_catalog.pg_class WHERE relname='{$table}'\n\t\t\tAND relnamespace = (SELECT oid FROM pg_catalog.pg_namespace WHERE nspname='{$c_schema}')";
        $rs = $this->selectSet($sql);
        if ($rs->recordCount() != 1) {
            return null;
        } else {
            $rs->fields['relhasoids'] = $this->phpBool($rs->fields['relhasoids']);
            return $rs->fields['relhasoids'];
        }
    }
Postgres