protected function query_all_assoc ( $sql )
    {
        $sql = $this->sql_printf(func_get_args());
        if (!($res = pg_query($this->conn, $sql)))
        {
            $this->sql_errcheck($sql);
        }
        $rs = array();
        while ($row  = pg_fetch_assoc($res))
        {
            $rs[] = $row;
        }
        pg_free_result($res);
        return $rs;
    }
protected function query_all_assoc ( $sql )
    {
        $sql = $this->sql_printf(func_get_args());
        if (!($res = pg_query($this->conn, $sql)))
        {
            $this->sql_errcheck($sql);
        }
        $rs = array();
        while ($row  = pg_fetch_assoc($res))
        {
            $rs[] = $row;
        }
        pg_free_result($res);
        return $rs;
    }
protected function query_all_assoc ( $ sql ) { $ sql = $ this -> sql_printf ( func_get_args ( ) ) ; if ( ! ( $ res = pg_query ( $ this -> conn , $ sql ) ) ) { $ this -> sql_errcheck ( $ sql ) ; } $ rs = array ( ) ; while ( $ row = pg_fetch_assoc ( $ res ) ) { $ rs [ ] = $ row ; } pg_free_result ( $ res ) ; return $ rs ; }
Perform a query, return all rows

@param string sql
@param vararg arguments (for sprintf)
@return array
Perform a query return all rows