Skip to content

Commit

Permalink
Simplified standard create schema statement compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
budu committed Dec 28, 2010
1 parent 879ce3f commit 67d0ddd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lobos/compiler.clj
Expand Up @@ -118,9 +118,9 @@
(defmethod compile [::standard lobos.ast.CreateSchemaStatement]
[statement]
(let [{:keys [sname elements]} statement]
(format "CREATE SCHEMA %s \n\n%s"
(as-str sname)
(join "\n\n" (map compile elements)))))
(str "CREATE SCHEMA "
(join "\n\n" (conj (map compile elements)
(as-str sname))))))

(defmethod compile [::standard lobos.ast.CreateTableStatement]
[statement]
Expand Down

0 comments on commit 67d0ddd

Please sign in to comment.