WireDatabaseDialect::queryStatement()
Run a query() and return its statement
Provided so that a dialect can do its own bookkeeping for statements that PDO creates (and executes) itself, since those do not pass through prepare() or execute().
Available since version 3.0.273.
Usage
$pDOStatement = $wireDatabaseDialect->queryStatement(\PDO $pdo, string $sql);Arguments
| Name | Type(s) | Description |
|---|---|---|
$pdo | \PDO | |
$sql | string | Already translated, if the dialect translates |
Return value
PDOStatement false
Exceptions
Method can throw exceptions on error:
\PDOException
WireDatabaseDialect methods and properties
API reference based on ProcessWire core version 3.0.275