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
|
||||
(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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue