handle "bug fix" in PG 4.7.4
Signed-off-by: Sean Corfield <sean@corfield.org>
This commit is contained in:
parent
4ea3bcf4a3
commit
b2656120b4
2 changed files with 4 additions and 3 deletions
1
deps.edn
1
deps.edn
|
|
@ -32,6 +32,7 @@
|
|||
net.sourceforge.jtds/jtds {:mvn/version "1.3.1"}
|
||||
org.mariadb.jdbc/mariadb-java-client {:mvn/version "3.4.1"}
|
||||
com.mysql/mysql-connector-j {:mvn/version "9.0.0"}
|
||||
;; 42.7.4 changes update count (to -1) for stored procs:
|
||||
org.postgresql/postgresql {:mvn/version "42.7.4"}
|
||||
io.zonky.test/embedded-postgres {:mvn/version "2.0.7"}
|
||||
io.zonky.test.postgres/embedded-postgres-binaries-darwin-amd64 {:mvn/version "16.4.0"}
|
||||
|
|
|
|||
|
|
@ -904,9 +904,9 @@ INSERT INTO fruit (name, appearance) VALUES (?,?)
|
|||
{:multi-rs true})
|
||||
zero-updates [{:next.jdbc/update-count 0}]]
|
||||
(cond (postgres?) ; does not support multiple result sets yet
|
||||
(do
|
||||
(is (= 1 (count multi-rs)))
|
||||
(is (= zero-updates (first multi-rs))))
|
||||
;; 4.7.3 (and earlier?) returned the fake zero-updates
|
||||
;; 4.7.4 returns -1 for update count and an empty result set
|
||||
(is (= 0 (count multi-rs)))
|
||||
(hsqldb?)
|
||||
(do
|
||||
(is (= 3 (count multi-rs)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue