Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


autogenerated keys #67

wants to merge 1 commit into from

2 participants

Edmund Jackson Herwig Hochleitner
Edmund Jackson

Higher version numbers of the odbc driver for mysql require that statement preparation sets a flag indicating that autogenerated keys will be requested.

Herwig Hochleitner

Duplicate of #83
Can't merge it for the same reason of breaking PostgreSQL, sorry.

Herwig Hochleitner bendlas closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/clojureql/internal.clj
2  src/clojureql/internal.clj
@@ -356,7 +356,7 @@
open database connection. Each param-group is a seq of values for all of
the parameters."
[sql & param-groups]
- (with-open [stmt (.prepareStatement (:connection sqlint/*db*) sql)]
+ (with-open [stmt (.prepareStatement (:connection sqlint/*db*) sql java.sql.Statement/RETURN_GENERATED_KEYS)]
(doseq [param-group param-groups]
(doseq [[idx v] (map vector (iterate inc 1) param-group)]
(.setObject stmt idx v))
Something went wrong with that request. Please try again.