summaryrefslogtreecommitdiff
path: root/src/clojure_sql/compiler.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/clojure_sql/compiler.clj')
-rw-r--r--src/clojure_sql/compiler.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clojure_sql/compiler.clj b/src/clojure_sql/compiler.clj
index 0cbb808..6b3ec4a 100644
--- a/src/clojure_sql/compiler.clj
+++ b/src/clojure_sql/compiler.clj
@@ -258,7 +258,7 @@
(table-name db (val (first tables)))
" ("
(->> fields
- (map (comp (partial table-name db) second val))
+ (map (comp (partial field-name db) second val))
(string/join ","))
") VALUES (" (string/join "),(" %) ")")
build-insertion #(->> (for [field fields-order]