MSSQLStatement Class Reference

Inheritance diagram for MSSQLStatement:

StatementCommon Statement

List of all members.

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).


Detailed Description

Definition at line 32 of file MSSQLStatement.php.


Member Function Documentation

MSSQLStatement::executeQuery ( sql,
fetchmode = null 
)

Executes the SQL query in this PreparedStatement object and returns the resultset generated by the query.

Parameters:
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).
Returns:
object Creole::ResultSet
Exceptions:
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.

Returns:
boolean True if there is another result set, otherwise false.

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     }


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