stable

Clone or download

Read-only

Parameters of from statements should also be unique

This is part of story #10704 define a query with date fields Test `@status != OPEN() or @status != OPEN()`, it should not return empty results. It should return the same results than the query `@status != OPEN()`. This is due to the fact that we were applying a array_unique on the From statements, but not on their parameters. Change-Id: I635feae4d53827182285b5e0131d3d32b972911d

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/CrossTrackerExpertQueryReportDao.php +29 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/IProvideParametrizedFromAndWhereSQLFragments.php +8 −5 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/ParametrizedAndFromWhere.php +6 −29 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/ParametrizedFrom.php +67 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/ParametrizedFromWhere.php +11 −29 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/ParametrizedOrFromWhere.php +4 −25 Go to diff View file
M plugins/crosstracker/include/autoload.php +3 −2 Go to diff View file
A plugins/crosstracker/phpunit/CrossTracker/Report/Query/ParametrizedFromTest.php +36 −0 Go to diff View file