mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 17:05:45 +02:00
Merge pull request #2 from mrmorphic/master
Operator precedence error means query execution times are meaningless. This corrects them.
This commit is contained in:
commit
b9e63145b4
@ -230,7 +230,7 @@ class PostgreSQLDatabase extends SS_Database {
|
||||
$handle = pg_query($this->dbConn, $sql);
|
||||
|
||||
if(isset($_REQUEST['showqueries'])) {
|
||||
$endtime = round(microtime(true) - $starttime * 1000, 1);
|
||||
$endtime = round((microtime(true) - $starttime) * 1000, 1);
|
||||
Debug::message("\n$sql\n{$endtime}ms\n", false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user