projects
/
dbsrgits/SQL-Abstract.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
1d6b8d4
)
sort hash keys when found as RHS in a hashpair
Matt S Trout [Sun, 31 Jul 2011 00:33:46 +0000 (
00:33
+0000)]
lib/SQL/Abstract.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Abstract.pm
b/lib/SQL/Abstract.pm
index
0901281
..
fde45df
100644
(file)
--- a/
lib/SQL/Abstract.pm
+++ b/
lib/SQL/Abstract.pm
@@
-693,7
+693,7
@@
sub _where_hashpair_to_dq {
if (ref($v) eq 'HASH') {
if (keys %$v > 1) {
return $self->_where_to_dq_ARRAYREF([
- map +{ $k => { $_ => $v->{$_} } }, keys %$v
+ map +{ $k => { $_ => $v->{$_} } }, sort keys %$v
], 'AND');
}
(uc((keys %$v)[0]), (values %$v)[0]);