allow string aliases

This commit is contained in:
Justin Kramer 2012-08-22 11:23:00 -04:00
parent 73da451ab3
commit 3b97fd4f06

View file

@ -151,7 +151,9 @@
;; alias ;; alias
(str (to-sql (first x)) (str (to-sql (first x))
" AS " " AS "
(to-sql (second x))))) (if (string? (second x))
(str "\"" (second x) "\"")
(to-sql (second x))))))
SqlCall SqlCall
(-to-sql [x] (binding [*fn-context?* true] (-to-sql [x] (binding [*fn-context?* true]
(let [fn-name (name (.name x)) (let [fn-name (name (.name x))