From: Matt S Trout Date: Thu, 11 Apr 2019 01:17:40 +0000 (+0000) Subject: make non-ascii operators work X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=33ac0d7bd78b3b5cbe6e52520d80fd88e208215b;p=scpubgit%2FQ-Branch.git make non-ascii operators work --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index cbad9ed..1435883 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -588,6 +588,8 @@ sub _expand_hashpair { } if ($k =~ /^-/) { return $self->_expand_hashpair_op($k, $v); + } elsif ($k =~ /^[^\w]/i) { + return $self->_expand_op(-op, [ $k, @$v ]); } return $self->_expand_hashpair_ident($k, $v); }