ODBCStatement Class Reference

Inheritance diagram for ODBCStatement:

StatementCommon Statement

List of all members.

Public Member Functions

 executeQuery ($sql, $fetchmode=null)


Detailed Description

Definition at line 32 of file ODBCStatement.php.


Member Function Documentation

ODBCStatement::executeQuery ( sql,
fetchmode = null 
)

See also:
Statement::executeQuery()

Reimplemented from StatementCommon.

Definition at line 37 of file ODBCStatement.php.

00038     {
00039         if ($this->resultSet)
00040         {
00041             $this->resultSet->close();
00042             $this->resultSet = null;
00043         }
00044 
00045         $this->updateCount = null;
00046 
00047         if ($this->conn->getAdapter()->hasLimitOffset())
00048         {
00049             if ($this->limit > 0 || $this->offset > 0)
00050                 $this->conn->applyLimit($sql, $this->offset, $this->limit);
00051         }
00052 
00053         $this->resultSet = $this->conn->executeQuery($sql, $fetchmode);
00054 
00055         if (!$this->conn->getAdapter()->hasLimitOffset())
00056         {
00057             $this->resultSet->_setOffset($this->offset);
00058             $this->resultSet->_setLimit($this->limit);
00059         }
00060 
00061         return $this->resultSet;
00062     }


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

Generated on Wed May 6 23:10:50 2009 for fareofficelib by  doxygen 1.5.8