projects
/
dbsrgits/SQL-Abstract.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
7958f5c
)
make non-ascii operators work
Matt S Trout [Thu, 11 Apr 2019 01:17:40 +0000 (
01:17
+0000)]
lib/SQL/Abstract.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Abstract.pm
b/lib/SQL/Abstract.pm
index
cbad9ed
..
1435883
100644
(file)
--- 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);
}