Factor out ORDER BY direction detection/stripping
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Sun, 24 Mar 2013 16:23:37 +0000 (16:23 +0000)
committerPeter Rabbitson <ribasushi@cpan.org>
Wed, 17 Apr 2013 08:59:34 +0000 (10:59 +0200)
commitcb3e87f5f530f76ddf46924e6ec6bd3cc414ccd3
tree545b634057a6c474014ce25cacc5345a8added4a
parent318e3d94c5332d5af335706b26fc5b6f6fc5c703
Factor out ORDER BY direction detection/stripping

The slightly unobvious regex is so that it's easier to add support for
more clauses (e.g. NULLS FIRST/LAST) later.
lib/DBIx/Class/SQLMaker.pm
lib/DBIx/Class/SQLMaker/LimitDialects.pm
lib/DBIx/Class/Storage/DBIHacks.pm