DBIx::Class::Storage::DBIHacks::_strip_cond_qualifiers was failing to recurse down "-or" conditions. Add minimal support for that, including a test.
…t + tests
siracusa++ for spotting the incorrect SQL in the first place, and pointing out that the competition sucks :)
The short version is - now you can do $rs->pager->total_entries($satanic_num) and DBIC will never even try to fire a COUNT query This may seem to be a *lot* of code to do something that could be done with a trivial subclass. However keep in mind that this is a proof-of-concept of what do we do when we can *not* (or do not want to) subclass.
The removal of the explicit ->disconnect on $storage DESTROY revealed a problem with older perls and nesting of try blocks