From 315d629202b4404a92b680fe48ba26a93b9b8e6a Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Fri, 27 Mar 2020 16:06:38 -0700 Subject: [PATCH] Fixes #102 by supporting keywords in :return-keys --- CHANGELOG.md | 1 + src/next/jdbc/prepare.clj | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f0d685..49143f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Only accretive/fixative changes will be made from now on. The following changes have been made to **master** since the 1.0.409 build: +* Fixes #102 by allowing keywords or strings in `:return-keys`. * Fixes #101 by tightening the spec on a JDBC URL to correctly reflect that it must start with `jdbc:`. * Add support for calling `.getLoginTimeout`/`.setLoginTimeout` on the reified `DataSource` returned by `get-datasource` when called on a hash map "db-spec" or JDBC URL string. diff --git a/src/next/jdbc/prepare.clj b/src/next/jdbc/prepare.clj index 5ba66df..9a9a06d 100644 --- a/src/next/jdbc/prepare.clj +++ b/src/next/jdbc/prepare.clj @@ -77,7 +77,7 @@ (defn- ^{:tag (class (into-array String []))} string-array [return-keys] - (into-array String return-keys)) + (into-array String (map name return-keys))) (defn create "This is an implementation detail -- use `next.jdbc/prepare` instead.