perf: refs #7671 improve showBadDates

This commit is contained in:
Javier Segarra 2024-09-08 12:49:55 +02:00
parent 59cce5d349
commit dbd8f94555
2 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,5 @@
CREATE USER 'vn'@'localhost';
INSERT INTO `ormConfig`(`id`,`selectLimit`) VALUES(1,1000);
GRANT SELECT,
INSERT,

View File

@ -188,10 +188,10 @@ module.exports = Self => {
stmt.merge({
sql: ` WHERE
fp.started> util.VN_CURDATE() `});
}
stmt.merge(conn.makeSuffix(filter));
} else
stmt.merge(conn.makeWhere(filter.where));
stmt.merge(conn.makeOrderBy(filter.order));
stmt.merge(conn.makeLimit(filter));
const fixedPriceIndex = stmts.push(stmt) - 1;
const sql = ParameterizedSQL.join(stmts, ';');
const result = await conn.executeStmt(sql, myOptions);