From 11d4ff37ec93da6a15835f7466bca8384771faf4 Mon Sep 17 00:00:00 2001 From: "Andrii V. Mishkovskyi" Date: Thu, 16 Apr 2015 21:23:19 +0200 Subject: [PATCH] Adding a comment for future reference --- src/honeysql/format.clj | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/honeysql/format.clj b/src/honeysql/format.clj index aec3d0c..0f7d779 100644 --- a/src/honeysql/format.clj +++ b/src/honeysql/format.clj @@ -413,6 +413,12 @@ (comma-join (for [field fields] (if (sequential? 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) "DESC" "ASC"))) (to-sql field))))))