function PdoTrait::getClientStatement
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Database/Statement/PdoTrait.php \Drupal\Core\Database\Statement\PdoTrait::getClientStatement()
Returns the client-level database PDO statement object.
This method should normally be used only within database driver code.
Return value
\PDOStatement The client-level database PDO statement.
Throws
\LogicException If the client-level statement is not set.
1 call to PdoTrait::getClientStatement()
- StatementWrapperIterator::execute in core/
lib/ Drupal/ Core/ Database/ StatementWrapperIterator.php - Executes a prepared statement.
1 method overrides PdoTrait::getClientStatement()
- PdoResult::getClientStatement in core/
lib/ Drupal/ Core/ Database/ Statement/ PdoResult.php - Returns the client-level database PDO statement object.
File
-
core/
lib/ Drupal/ Core/ Database/ Statement/ PdoTrait.php, line 95
Class
- PdoTrait
- A trait for calling \PDOStatement methods.
Namespace
Drupal\Core\Database\StatementCode
public function getClientStatement() : \PDOStatement {
if (isset($this->clientStatement)) {
assert($this->clientStatement instanceof \PDOStatement);
return $this->clientStatement;
}
throw new \LogicException('\\PDOStatement not initialized');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.