Skip to content

Commit

Permalink
[BUGFIX] Do not report statistics in response for save action
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Sep 5, 2015
1 parent 389778a commit 2b4432a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database.php
Expand Up @@ -95,7 +95,7 @@ public function query(Query $query) {
'values' => $result,
'token' => $token
);
if (1 < count($result)) {
if (1 < count($result) && $action !== Query::ACTION_SAVE) {
$response['statistics'] = $this->getCalculator()->statistics($result);
}
$response['querytime'] = round(((microtime(TRUE) - $time) * 1000), 5);
Expand Down

0 comments on commit 2b4432a

Please sign in to comment.