Commit 571eead6 authored by Guilliam Xavier's avatar Guilliam Xavier Committed by Steve Müller

Fix SQL queries numbering in test failure output

For example if the DebugStack SQL logger contains 3 queries, then we want an output like this:
```
3. <query 3>
2. <query 2>
1. <query 1>
```
not like that:
```
4. <query 3>
3. <query 2>
2. <query 1>
```
parent c664ce7f
...@@ -59,7 +59,7 @@ class DbalFunctionalTestCase extends DbalTestCase ...@@ -59,7 +59,7 @@ class DbalFunctionalTestCase extends DbalTestCase
return var_export($p, true); return var_export($p, true);
} }
}, $query['params'] ?: array()); }, $query['params'] ?: array());
$queries .= ($i+1).". SQL: '".$query['sql']."' Params: ".implode(", ", $params).PHP_EOL; $queries .= $i.". SQL: '".$query['sql']."' Params: ".implode(", ", $params).PHP_EOL;
$i--; $i--;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment