Public Member Functions | |
executeQuery ($sql, $fetchmode=null) | |
Executes the SQL query in this PreparedStatement object and returns the resultset generated by the query. | |
getMoreResults () | |
Gets next result set (if this behavior is supported by driver). |
Definition at line 32 of file MSSQLStatement.php.
MSSQLStatement::executeQuery | ( | $ | sql, | |
$ | fetchmode = null | |||
) |
Executes the SQL query in this PreparedStatement object and returns the resultset generated by the query.
string | $sql This method may optionally be called with the SQL statement. | |
int | $fetchmode The mode to use when fetching the results (e.g. ResultSet::FETCHMODE_NUM, ResultSet::FETCHMODE_ASSOC). |
SQLException | If there is an error executing the specified query. |
Reimplemented from StatementCommon.
Definition at line 42 of file MSSQLStatement.php.
00043 { 00044 $this->updateCount = null; 00045 $this->resultSet = $this->conn->executeQuery($sql, $fetchmode); 00046 $this->resultSet->_setOffset($this->offset); 00047 $this->resultSet->_setLimit($this->limit); 00048 return $this->resultSet; 00049 }
MSSQLStatement::getMoreResults | ( | ) |
Gets next result set (if this behavior is supported by driver).
Some drivers (e.g. MSSQL) support returning multiple result sets -- e.g. from stored procedures.
This function also closes any current restult set.
Default behavior is for this function to return false. Driver-specific implementations of this class can override this method if they actually support multiple result sets.
Reimplemented from StatementCommon.
Definition at line 65 of file MSSQLStatement.php.
00066 { 00067 if ($this->resultSet) $this->resultSet->close(); 00068 $this->resultSet = null; 00069 return false; 00070 }