stable
Clone or download
Read-only
Searching test status per test definitions gives a consistent result accross the supported RDBMS
The trick with the user variable does not work on MySQL 8.0+ and MariaDB 10.2+ because the optimizer is smarter and decide to do the ordering before the grouping [0]. As noted in the MySQL manual this behavior is expected [1] and developers should not consider the order in which the operations are executed to be determinate. You can verify it works with both MySQL 5.7 and MariaDB 8.0 by running the REST tests: make tests-rest DB=mariadb103 make tests-rest DB=mysql57 Part of story #15094: have more effective test plan [0] https://mariadb.com/kb/en/group-by-trick-has-been-optimized-away/ [1] https://dev.mysql.com/doc/refman/5.7/en/group-by-handling.html Change-Id: If48f5006f7d9576ac46a958f014aa22bf43c7d0d
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/testplan/include/TestDefinition/TestPlanTestDefinitionsTestStatusDAO.php | +48 | −50 | Go to diff View file |