Default implementation of DatabaseStatementInterface.

PDO allows us to extend the PDOStatement class to provide additional functionality beyond that offered by default. We do need extra functionality. By default, this class is not driver-specific. If a given driver needs to set a custom statement class, it may do so in its constructor.

Hierarchy

Expanded class hierarchy of DatabaseStatementBase

See also

http://us.php.net/pdostatement

Related topics

File

includes/database/database.inc, line 2344
Core systems for the database layer.

Members

Contains filters are case sensitive
Name Modifiers Type Descriptionsort descending
DatabaseStatementBase::__construct protected function
DatabaseStatementBase::execute public function Executes a prepared statement Overrides DatabaseStatementInterface::execute
DatabaseStatementBase::fetchAssoc public function Fetches the next row and returns it as an associative array. Overrides DatabaseStatementInterface::fetchAssoc
DatabaseStatementBase::getQueryString public function Gets the query string of this statement. Overrides DatabaseStatementInterface::getQueryString
DatabaseStatementBase::$dbh public property Reference to the database connection object for this statement.
DatabaseStatementBase::fetchCol public function Returns an entire single column of a result set as an indexed array. Overrides DatabaseStatementInterface::fetchCol
DatabaseStatementBase::fetchField public function Returns a single field from the next record of a result set. Overrides DatabaseStatementInterface::fetchField
DatabaseStatementBase::fetchAllKeyed public function Returns the entire result set as a single associative array. Overrides DatabaseStatementInterface::fetchAllKeyed
DatabaseStatementInterface::rowCount public function Returns the number of rows affected by the last SQL statement.
DatabaseStatementBase::fetchAllAssoc public function Returns the result set as an associative array keyed by the given field. Overrides DatabaseStatementInterface::fetchAllAssoc