projects
/
dbsrgits/SQL-Abstract.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
dfaa968
)
abstract order specification
Matt S Trout [Fri, 20 Apr 2012 09:18:55 +0000 (09:18 +0000)]
lib/SQL/Abstract/Converter.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Abstract/Converter.pm
b/lib/SQL/Abstract/Converter.pm
index
eeeb4f4
..
6621945
100644
(file)
--- a/
lib/SQL/Abstract/Converter.pm
+++ b/
lib/SQL/Abstract/Converter.pm
@@
-552,7
+552,7
@@
sub _order_by_to_dq {
my $dq = {
type => DQ_ORDER,
- ($dir ? (direction => $dir) : ()),
+ (defined($dir) ? (reverse => !!$dir =~ /desc/i) : ()),
($from ? (from => $from) : ()),
};