Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions clj/db/pg.clj
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,10 @@
params)]
(dotimes [i n]
(let [[oid p len fmt] (nth cells i)]
(ffi/write types :uint (* i os) oid)
(ffi/write values :pointer (* i ps) p)
(ffi/write lengths :int (* i is) len)
(ffi/write formats :int (* i is) fmt)))
(ffi/write types :uint oid (* i os))
(ffi/write values :pointer p (* i ps))
(ffi/write lengths :int len (* i is))
(ffi/write formats :int fmt (* i is))))
[types values lengths formats
(into [types values lengths formats]
(remove (fn [p] (ffi/null? p)) (mapv second cells)))]))))
Expand Down
7 changes: 6 additions & 1 deletion deps.edn
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{:paths ["clj"]
{;; jolt.ffi/write takes the value BEFORE the offset as of jolt 0.8.0, and the
;; two spellings are both integers — an older runtime writes to the wrong
;; place rather than failing. Declare the floor so it refuses instead.
:jolt/min-version "0.8.0"

:paths ["clj"]

;; clojure.jdbc is the API this library exposes: the published library running on
;; the java.sql shim in db.jdbc-shim, rather than a reimplementation of it here.
Expand Down
Loading