"TYPO3 4.0.1: ADODB_postgres7 Class Reference", "datetime" => "Sat Dec 2 19:23:53 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>

ADODB_postgres7 Class Reference

Inheritance diagram for ADODB_postgres7:

Inheritance graph
[legend]
Collaboration diagram for ADODB_postgres7:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ADODB_postgres7 ()
SelectLimit ($sql, $nrows=-1, $offset=-1, $inputarr=false, $secs2cache=0)
 MetaForeignKeys ($table, $owner=false, $upper=false)
 _query ($sql, $inputarr)
 GetCharSet ()
 SetCharSet ($charset_name)

Public Attributes

 $databaseType = 'postgres7'
 $hasLimit = true
 support mssql/access SELECT TOP 10 * FROM TABLE
 $ansiOuter = true
 operator to use for right outer join in WHERE clause
 $charSet = true
 string to use to quote identifiers and names

Detailed Description

Definition at line 19 of file adodb-postgres7.inc.php.


Member Function Documentation

ADODB_postgres7::MetaForeignKeys table,
owner = false,
upper = false
 

Returns:
assoc array where keys are tables, and values are foreign keys

Reimplemented from ADOConnection.

Definition at line 61 of file adodb-postgres7.inc.php.

References ADODB_postgres64::$rs, and ADOConnection::Execute().

& ADODB_postgres7::SelectLimit sql,
nrows = -1,
offset = -1,
inputarr = false,
secs2cache = 0
 

Will select, getting rows from $offset (1-based), for $nrows. This simulates the MySQL "select * from table limit $offset,$nrows" , and the PostgreSQL "select * from table limit $nrows offset $offset". Note that MySQL and PostgreSQL parameter ordering is the opposite of the other. eg. SelectLimit('select * from table',3); will return rows 1 to 3 (1-based) SelectLimit('select * from table',3,2); will return rows 3 to 5 (1-based)

Uses SELECT TOP for Microsoft databases (when $this->hasTop is set) BUG: Currently SelectLimit fails with $sql with LIMIT or TOP clause already set

Parameters:
sql 
[offset] is the row to start calculations from (1-based)
[nrows] is the number of rows to get
[inputarr] array of bind variables
[secs2cache] is a private parameter only used by jlim
Returns:
the recordset ($rs->databaseType == 'array')

Reimplemented from ADOConnection.

Definition at line 37 of file adodb-postgres7.inc.php.

References ADODB_postgres64::$rs, ADOConnection::CacheExecute(), and ADOConnection::Execute().


The documentation for this class was generated from the following file: