board logo
WUICTeam
  • WUICTeam
  • 100% (Exalted)
  • Newbie Topic Starter
22 days ago
Question
I have a list on a MySQL database with grouping done on the server side (page size 10). The pager says there are 25 groups, but if I go through all the pages I only find 24 of them. Page 1 is fine, but page 2 starts with group 12: group 11 never shows up anywhere. With more pages, one more group is lost on each page. The same list on SQL Server, PostgreSQL or Oracle shows every group. What is going on?

Answer
This was a bug in the MySQL provider. When grouping runs on the server, the query that reads the group headers of a page skipped one row too many from page 2 onwards, so the first group of every page after the first was never returned. The group total was computed correctly, which is why the pager announced more groups than you could actually see.

  • Affected: MySQL only, lists with server-side grouping, from page 2 onwards.
  • Not affected: lists without grouping, and the SQL Server, PostgreSQL and Oracle providers.
  • Fixed in: 1.7.30. After the update every page starts right after the last group of the previous page and all groups are shown exactly once.


No change to metadata or configuration is needed: update the framework and reload the list.