Skip to content

Commit

Permalink
Remove reflection warning
Browse files Browse the repository at this point in the history
  • Loading branch information
seancorfield committed Jun 26, 2012
1 parent 538acaf commit 629893e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/clojure/clojure/java/jdbc.clj
Expand Up @@ -414,7 +414,7 @@ generated keys are returned (as a map)." }
Specifically, Oracle returns that and we must call getUpdateCount() to get
the actual number of rows affected. In general, operations return an array
of update counts, so this may not be a general solution for Oracle..."
[stmt]
[^Statement stmt]
(let [result (.executeBatch stmt)]
(if (and (= 1 (count result)) (= -2 (first result)))
(list (.getUpdateCount stmt))
Expand Down

0 comments on commit 629893e

Please sign in to comment.