Skip to content

Commit

Permalink
Fix column names
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitem committed Aug 15, 2023
1 parent 1bf1e49 commit a75249e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dsql/pg.clj
Original file line number Diff line number Diff line change
Expand Up @@ -1098,10 +1098,10 @@
(fn [acc column val]
(cond
(vector? val)
(conj acc [(name column) (str/join " " (map name val))])
(conj acc [(str "\"" (name column) "\"") (str/join " " (map name val))])

(map? val)
(->> [(name column)
(->> [(str "\"" (name column) "\"")
(name (:type val))
(when (:not-null val) "NOT NULL")
(when (:primary-key val) "PRIMARY KEY")
Expand Down

0 comments on commit a75249e

Please sign in to comment.