8000 Support multi-row inserts · alaisi/postgres.async@f75d498 · GitHub
[go: up one dir, main page]

Skip to content

Commit f75d498

Browse files
committed
Support multi-row inserts
1 parent c7774c8 commit f75d498

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/postgres/async/impl.clj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
(str "$" i)))
3737
")"))
3838

39-
(defn- list-params-seq [datas]
40-
(if (map? datas)
41-
(list-params 1 (inc (count datas)))
42-
(let [size (count (first datas))
43-
max (inc (* (count datas) size))]
39+
(defn- list-params-seq [data]
40+
(if (map? data)
41+
(list-params 1 (inc (count data)))
42+
(let [size (count (first data))
43+
max (inc (* (count data) size))]
4444
(string/join ", " (map
4545
#(str "(" (string/join ", " %) ")")
4646
(partition size (for [i (range 1 max)]

0 commit comments

Comments
 (0)
0