diff --git a/src/honeysql/format.clj b/src/honeysql/format.clj index 9dd4cfb..8058945 100644 --- a/src/honeysql/format.clj +++ b/src/honeysql/format.clj @@ -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))