projects
/
dbsrgits/SQL-Abstract-2.0-ish.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Sort hash keys so that the SQL produced is stable
[dbsrgits/SQL-Abstract-2.0-ish.git]
/
lib
/
SQL
/
Abstract
/
Compat.pm
diff --git
a/lib/SQL/Abstract/Compat.pm
b/lib/SQL/Abstract/Compat.pm
index
3928a78
..
5158b32
100644
(file)
--- a/
lib/SQL/Abstract/Compat.pm
+++ b/
lib/SQL/Abstract/Compat.pm
@@
-121,7
+121,9
@@
class SQL::Abstract::Compat {
args => \@args
};
- while (my ($key,$value) = each %$ast) {
+ for my $key ( sort keys %$ast ) {
+ my $value = $ast->{$key};
+
if ($key =~ /^-(or|and)$/) {
my $val = $self->recurse_where($value, uc $1);
if ($val->{op} eq $ret->{op}) {