Let SQLMaker rs_attr 'for' support string literals
authorMatt Phillips <mphillips@oanda.com>
Fri, 19 Oct 2012 18:49:46 +0000 (14:49 -0400)
committerPeter Rabbitson <ribasushi@cpan.org>
Sat, 3 Nov 2012 18:24:53 +0000 (19:24 +0100)
commit8249c09bde719b24cd6784dca75405073db40a1a
tree6eaf009f0020aeb57eafc86d027642d83ccd3f22
parent0fbbc3a6072a446a71a70858daf5ccbbe00f5a97
Let SQLMaker rs_attr 'for' support string literals

SQLMaker previously only allowed hardcoded values with the 'for' attr,
overriding in storage specific subclasses. Rather than attempt to provide an
exhaustive list of possible options, the base class can now take \$scalaras
an override that is embedded directly in the returned $sql
Changes
lib/DBIx/Class/ResultSet.pm
lib/DBIx/Class/SQLMaker.pm
t/sqlmaker/core.t