Overrides PdoProfilerStorage::fetch
protected function fetch($db, $query, array $args = array()) {
$return = array();
if ($db instanceof \SQLite3) {
$stmt = $this
->prepareStatement($db, $query, true);
foreach ($args as $arg => $val) {
$stmt
->bindValue($arg, $val, is_int($val) ? \SQLITE3_INTEGER : \SQLITE3_TEXT);
}
$res = $stmt
->execute();
while ($row = $res
->fetchArray(\SQLITE3_ASSOC)) {
$return[] = $row;
}
$res
->finalize();
$stmt
->close();
}
else {
$return = parent::fetch($db, $query, $args);
}
return $return;
}