Adding a comment for future reference
This commit is contained in:
parent
76303c2ffe
commit
11d4ff37ec
1 changed files with 6 additions and 0 deletions
|
|
@ -413,6 +413,12 @@
|
||||||
(comma-join (for [field fields]
|
(comma-join (for [field fields]
|
||||||
(if (sequential? field)
|
(if (sequential? field)
|
||||||
(let [[field order & [nulls-order]] field]
|
(let [[field order & [nulls-order]] field]
|
||||||
|
;; Correct way of handling this would be to
|
||||||
|
;; expect a dictionary with either order,
|
||||||
|
;; nulls order or both at the same
|
||||||
|
;; time. However, so far I'm not sure how to
|
||||||
|
;; achieve that, so first iteration will have
|
||||||
|
;; to use dirty hacks.
|
||||||
(str (to-sql field) " " (if (= :desc order)
|
(str (to-sql field) " " (if (= :desc order)
|
||||||
"DESC" "ASC")))
|
"DESC" "ASC")))
|
||||||
(to-sql field))))))
|
(to-sql field))))))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue