From: Matt S Trout Date: Tue, 17 Apr 2012 15:44:27 +0000 (+0000) Subject: handle ->_where_to_dq($plain_sql_string) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e177c25686fa0680a14f9f3be30cf2635fbef626;p=dbsrgits%2FSQL-Abstract.git handle ->_where_to_dq($plain_sql_string) --- diff --git a/lib/SQL/Abstract/Converter.pm b/lib/SQL/Abstract/Converter.pm index 1cac53a..eeeb4f4 100644 --- a/lib/SQL/Abstract/Converter.pm +++ b/lib/SQL/Abstract/Converter.pm @@ -277,6 +277,9 @@ sub _where_to_dq { return undef unless defined($where); + # if we're given a simple string assume it's a literal + return $self->_literal_to_dq($where) if !ref($where); + # turn the convert misfeature on - only used in WHERE clauses local $self->{where_convert} = $self->convert;