Skip to content

Commit

Permalink
keep namespace and quote unprepared statement keys
Browse files Browse the repository at this point in the history
  • Loading branch information
nivekuil committed Sep 11, 2022
1 parent a9c1f2d commit 541669a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/alia/src/qbits/alia.clj
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@
(SimpleStatement/newInstance
q
^Map (reduce-kv (fn [m k v]
(assoc m (name k) (encode v)))
(assoc m (format "\"%s\"" (if (keyword? k) (.-sym ^clojure.lang.Keyword k) k))
(encode v)))
{}
values))

Expand Down

0 comments on commit 541669a

Please sign in to comment.