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
(str (to-sql (first x))
" AS "
(to-sql (second x)))))
(if (string? (second x))
(str "\"" (second x) "\"")
(to-sql (second x))))))
SqlCall
(-to-sql [x] (binding [*fn-context?* true]
(let [fn-name (name (.name x))