diff options
Diffstat (limited to 'src/clojure_sql')
-rw-r--r-- | src/clojure_sql/jdbc.clj | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clojure_sql/jdbc.clj b/src/clojure_sql/jdbc.clj index 253f680..d976e37 100644 --- a/src/clojure_sql/jdbc.clj +++ b/src/clojure_sql/jdbc.clj @@ -31,14 +31,14 @@ (insert! [_ query records] (let [compiled (compiler/compile-insert db-type query records)] (jdbc/with-connection connection-string - (jdbc/do-prepared-return-keys (first query) (next query))))) + (jdbc/do-prepared-return-keys (first compiled) (next compiled))))) (update! [_ query partial-record] (let [compiled (compiler/compile-update db-type query partial-record)] (jdbc/with-connection connection-string - (jdbc/do-prepared-return-keys (first query) (next query))))) + (jdbc/do-prepared-return-keys (first compiled) (next compiled))))) (delete! [_ query] (let [compiled (compiler/compile-delete db-type query)] (jdbc/with-connection connection-string - (first (jdbc/do-prepared (first query) (next query))))))))) + (first (jdbc/do-prepared (first compiled) (next compiled))))))))) |