Skip to content

Commit 4b1593b

Browse files
committed
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2 parents a6a0703 + ee9c9a0 commit 4b1593b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

libraries/classes/DatabaseInterface.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,14 @@ public function tryQuery(
204204

205205
$result = $this->extension->realQuery($query, $this->connections[$connectionType], $options);
206206

207+
if ($connectionType === Connection::TYPE_USER) {
208+
$this->lastQueryExecutionTime = microtime(true) - $time;
209+
}
210+
207211
if ($cacheAffectedRows) {
208212
$GLOBALS['cached_affected_rows'] = $this->affectedRows($connectionType, false);
209213
}
210214

211-
$this->lastQueryExecutionTime = microtime(true) - $time;
212215
if ($debug) {
213216
$errorMessage = $this->getError($connectionType);
214217
Utilities::debugLogQueryIntoSession(

0 commit comments

Comments
 (0)