Changes to num_rows function for hhvm

This commit is contained in:
Timothy Warren 2014-02-17 19:31:06 -05:00
parent 2465941fdf
commit 6a50404d54

View File

@ -447,7 +447,7 @@ abstract class DB_PDO extends PDO {
if (preg_match($regex, $this->last_query, $output) > 0)
{
$stmt = $this->query("SELECT COUNT(*) FROM {$output[1]}", PDO::FETCH_NUM);
$stmt = $this->query("SELECT COUNT(*) FROM {$output[1]}");
return $stmt->fetchColumn();
}