mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-17 21:38:14 +01:00
Include params object when counting query duplicates.
This commit is contained in:
parent
36d99d43d8
commit
7c0c9c7043
@ -56,6 +56,9 @@
|
|||||||
// Search for duplicate statements.
|
// Search for duplicate statements.
|
||||||
for (var sql = {}, duplicate = 0, i = 0; i < data.statements.length; i++) {
|
for (var sql = {}, duplicate = 0, i = 0; i < data.statements.length; i++) {
|
||||||
var stmt = data.statements[i].sql;
|
var stmt = data.statements[i].sql;
|
||||||
|
if (data.statements[i].params && !$.isEmptyObject(data.statements[i].params)) {
|
||||||
|
stmt += ' {' + $.param(data.statements[i].params, false) + '}';
|
||||||
|
}
|
||||||
sql[stmt] = sql[stmt] || { keys: [] };
|
sql[stmt] = sql[stmt] || { keys: [] };
|
||||||
sql[stmt].keys.push(i);
|
sql[stmt].keys.push(i);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user