Hi Marc,
I have submitted a patch on adding "Show/Hide search results criteria for db search" [1]. Please check that.
It seems I found the one case where it fails: if the table is listed as the last one in the search results. Can be reproduced in the sakila database if you add the "zzz" table to it, insert some data and search for it in the db search.
Now I'm looking at this issue and will be able to update you soon. Thank you.
[1] - https://sourceforge.net/tracker/?func=detail&aid=3256122&group_id=23...
Regards, Thilanka.