chiark
/
gitweb
/
~mdw
/
odin-cgi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6c2ef78
)
lib/Odin.pm: Alter `redir_query' to break ties by local part.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 4 Aug 2015 16:15:14 +0000
(17:15 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 4 Aug 2015 16:15:14 +0000
(17:15 +0100)
Otherwise the order is unstable across database modifications, at least
with PostgreSQL.
lib/Odin.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Odin.pm
b/lib/Odin.pm
index b91eb960d61dc87515d7ce64f4ca603f235aa1fd..a74283918f599fb6ac427823f5519bf6c32b6993 100644
(file)
--- a/
lib/Odin.pm
+++ b/
lib/Odin.pm
@@
-501,7
+501,7
@@
sub redir_query ($$$;$@) {
("SELECT lpart, expire, recip, comment
FROM odin_mailredir WHERE dom = ? AND owner = ?" .
(defined $cond ? " AND $cond" : "") . " " .
- "ORDER BY expire", undef, $dom, $owner, @args)};
+ "ORDER BY expire
, lpart
", undef, $dom, $owner, @args)};
}
sub clear_redir_reservations ($) {