Represents a prepared statement.
Some methods in that class are purposefully commented out. Due to a change in how PHP defines PDOStatement, we can't define a signature for those methods that will work the same way between versions older than 5.2.6 and later versions. See http://bugs.php.net/bug.php?id=42452 for more details.
Child implementations should either extend PDOStatement:
class DatabaseStatement_oracle extends PDOStatement implements DatabaseStatementInterface {}
or define their own class. If defining their own class, they will also have to implement either the Iterator or IteratorAggregate interface before DatabaseStatementInterface:
class DatabaseStatement_oracle implements Iterator, DatabaseStatementInterface {}
Implemented by
Hierarchy
- interface DatabaseStatementInterface extends \Traversable
Expanded class hierarchy of DatabaseStatementInterface
Related topics
File
- core/
includes/ database/ database.inc, line 2069 - Core systems for the database layer.
Members
Name | Modifiers | Type | Description |
---|---|---|---|
DatabaseStatementInterface:: |
public | function | Executes a prepared statement |
DatabaseStatementInterface:: |
public | function | Gets the query string of this statement. |
DatabaseStatementInterface:: |
public | function | Returns the number of rows affected by the last SQL statement. |
DatabaseStatementInterface:: |
public | function | Returns a single field from the next record of a result set. |
DatabaseStatementInterface:: |
public | function | Fetches the next row and returns it as an associative array. |
DatabaseStatementInterface:: |
public | function | Returns an entire single column of a result set as an indexed array. |
DatabaseStatementInterface:: |
public | function | Returns the entire result set as a single associative array. |
DatabaseStatementInterface:: |
public | function | Returns the result set as an associative array keyed by the given field. |