PgSQLResultSet Class Reference

Inherits ResultSetCommon, and ResultSet.

List of all members.

Public Member Functions


Member Function Documentation

PgSQLResultSet::seek ( $rownum )

 

Postgres doesn't actually move the db pointer. The specific row is fetched by call to pg_fetch_array() rather than by a seek and then an unspecified pg_fetch_array() call.

The only side-effect of this situation is that we don't really know if the seek will fail or succeed until we have called next(). This behavior is acceptible - and explicitly documented in ResultSet::seek() phpdoc.

See also ResultSet::seek()

Implements ResultSet.

PgSQLResultSet::next ( )

 

See also ResultSet::next()

Implements ResultSet.

PgSQLResultSet::getRecordCount ( )

 

See also ResultSet::getRecordCount()

Implements ResultSet.

PgSQLResultSet::close ( )

 

See also ResultSet::close()

Implements ResultSet.

array PgSQLResultSet::getArray ( $column )

 

Reads a column as an array. The value of the column is unserialized & returned as an array.
Parameters
mixed $column Column name (string) or index (int) starting with 1.

Returns array
Exceptions
SQLException - If the column specified is not a valid key in current field array.

Reimplemented from ResultSetCommon.

Blob PgSQLResultSet::getBlob ( $column )

 

Returns Blob with contents of column value.

Parameters
mixed $column Column name (string) or index (int) starting with 1 (if ResultSet::FETCHMODE_NUM was used).

Returns Blob New Blob with data from column.
Exceptions
SQLException - If the column specified is not a valid key in current field array.

Reimplemented from ResultSetCommon.

boolean PgSQLResultSet::getBoolean ( $column )

 

Parameters
mixed $column Column name (string) or index (int) starting with 1.

Returns boolean
Exceptions
SQLException - If the column specified is not a valid key in current field array.

Reimplemented from ResultSetCommon.


This file is part of the Creole[php5] library.


Copyright © 2004 Hans Lellelid  
Creole[php5] CVS