\Q-uote column/alias names in regexes in _resolve_aliastypes_from_select_args topic/quote-escape
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Sat, 26 Jul 2014 21:31:42 +0000 (22:31 +0100)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Sat, 26 Jul 2014 21:32:56 +0000 (22:32 +0100)
commit1c8dc11fc712d6d6580d828707322dd658f86221
tree59ff8c3eb7fb174e80b75106db6c9baa0e1adb4d
parentb25af2a8cd075015695e74ef077afd991442f615
\Q-uote column/alias names in regexes in _resolve_aliastypes_from_select_args

Column names can contain regex metacharacters (which includes #, with
/x), so wrap them in \Q and \E to avoid syntax errors.
Changes
lib/DBIx/Class/Storage/DBIHacks.pm
t/lib/DBICTest/Schema/Artist.pm
t/lib/DBICTest/Schema/Quotes.pm
t/sqlmaker/quotes.t