appoxy-aws 1.11.23 → 1.11.24
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sdb/active_sdb.rb +4 -4
- metadata +1 -1
data/lib/sdb/active_sdb.rb
CHANGED
@@ -552,10 +552,10 @@ module RightAws
|
|
552
552
|
order = options[:order] ? " ORDER BY #{options[:order]}" : ''
|
553
553
|
limit = options[:limit] ? " LIMIT #{options[:limit]}" : ''
|
554
554
|
# mix sort by argument (it must present in response)
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
555
|
+
unless order.blank?
|
556
|
+
sort_by, sort_order = sort_options(options[:order])
|
557
|
+
conditions << (conditions.blank? ? " WHERE " : " AND ") << "(#{sort_by} IS NOT NULL)"
|
558
|
+
end
|
559
559
|
"SELECT #{select} FROM #{from}#{conditions}#{order}#{limit}"
|
560
560
|
end
|
561
561
|
|