From 3588d526fa7cecdd67bbea3a094800c088803b93 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Fri, 19 Apr 2019 22:50:10 -0700 Subject: [PATCH] execute-all should return a vector even for update counts --- src/next/jdbc/result_set.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/next/jdbc/result_set.clj b/src/next/jdbc/result_set.clj index 3d293d9..c2ea5d3 100644 --- a/src/next/jdbc/result_set.clj +++ b/src/next/jdbc/result_set.clj @@ -293,7 +293,7 @@ (datafiable-row (row-builder gen) this opts)) (.next rs)) (rs! gen rs')))) - {:next.jdbc/update-count (.getUpdateCount stmt)}))) + [{:next.jdbc/update-count (.getUpdateCount stmt)}]))) javax.sql.DataSource (-execute [this sql-params opts] @@ -332,7 +332,7 @@ (datafiable-row (row-builder gen) this opts)) (.next rs)) (rs! gen rs')))) - {:next.jdbc/update-count (.getUpdateCount stmt)})))) + [{:next.jdbc/update-count (.getUpdateCount stmt)}])))) java.sql.PreparedStatement ;; we can't tell if this PreparedStatement will return generated @@ -359,7 +359,7 @@ (.getConnection this) opts)) (.next rs)) (rs! gen rs')))) - {:next.jdbc/update-count (.getUpdateCount this)})) + [{:next.jdbc/update-count (.getUpdateCount this)}])) Object (-execute [this sql-params opts]