From: Matt S Trout Date: Sun, 31 Jul 2011 05:38:30 +0000 (+0000) Subject: grudginly implement lc_keywords X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=04d30ecbe4c9a4dac7aed54a91a0c5f858e40d94;p=dbsrgits%2FData-Query.git grudginly implement lc_keywords --- diff --git a/lib/Data/Query/Renderer/SQL/Naive.pm b/lib/Data/Query/Renderer/SQL/Naive.pm index ee13cc4..11117da 100644 --- a/lib/Data/Query/Renderer/SQL/Naive.pm +++ b/lib/Data/Query/Renderer/SQL/Naive.pm @@ -61,12 +61,16 @@ sub _flatten_structure { ]; } -# I present this to permit strange people to easily supply a patch to lc() +# I presented this to permit strange people to easily supply a patch to lc() # their keywords, as I have heard many desire to do, lest they infect me # with whatever malady caused this desire by their continued proximity for # want of such a feature. +# +# Then I realised that SQL::Abstract compatibility work required it. +# +# FEH. -sub _format_keyword { $_[1] } +sub _format_keyword { $_[0]->{lc_keywords} ? lc($_[1]) : $_[1] } sub _render { $_[0]->${\"_render_${\(lc($_[1]->{type})||'broken')}"}($_[1]);