allow string aliases
This commit is contained in:
parent
73da451ab3
commit
3b97fd4f06
1 changed files with 3 additions and 1 deletions
|
|
@ -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))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue