Public Member Functions | |
executeQuery ($sql, $fetchmode=null) |
Definition at line 32 of file ODBCStatement.php.
ODBCStatement::executeQuery | ( | $ | sql, | |
$ | fetchmode = null | |||
) |
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 }