doctrine/dbal — pull request #169 by dpb587 (2012-07-09 22:53:01+00:00)
Title: Fix DebugStack->stopQuery to prevent unnecessary timings when disabled.

I noticed that `DebugStack` was adding an empty element when it was disabled. This PR changes it to match `startQuery` with its behavior.

1) Doctrine\Tests\DBAL\Logging\DebugStackTest::testLoggedQueryDisabled
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array
(
+ [0] => Array
+ (
+ [executionMS] => 1341871660.9651
+ )
+
)

Preferably this could also be backported to older branches as well.

(corrected PR from #168)