take more care in mangling SELECT when applying subquery limits
authorBrian Phillips <bphillips@cpan.org>
Wed, 11 May 2011 13:28:56 +0000 (08:28 -0500)
committerBrian Phillips <bphillips@cpan.org>
Wed, 11 May 2011 18:08:00 +0000 (13:08 -0500)
commitf74d22e2933e0ffed5955df8f35b47a4b096d6ef
tree0f41cd3349a9c0a1777b1caca2b155c5037e5ab0
parent4cc6b7521e4dba9b214fc8be3d4c630fc3d7e5a9
take more care in mangling SELECT when applying subquery limits

Previously, if there was a SELECT sub-query in the WHERE
clause, the regular expression was being a bit too greedy
and stripping too much out.
Changes
lib/DBIx/Class/SQLMaker.pm
lib/DBIx/Class/SQLMaker/LimitDialects.pm
t/sqlmaker/limit_dialects/rno.t
t/sqlmaker/limit_dialects/rownum.t
t/sqlmaker/limit_dialects/toplimit.t