summaryrefslogtreecommitdiff
path: root/src/clojure_sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/clojure_sql')
-rw-r--r--src/clojure_sql/jdbc.clj4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/clojure_sql/jdbc.clj b/src/clojure_sql/jdbc.clj
index 8611336..45b1839 100644
--- a/src/clojure_sql/jdbc.clj
+++ b/src/clojure_sql/jdbc.clj
@@ -9,4 +9,6 @@
:select (jdbc/with-query-results results query
(vec results))
:insert (jdbc/do-prepared-return-keys (first query) (next query))
- (jdbc/do-prepared (first query) (next query)))))))
+ :update (jdbc/do-prepared-return-keys (first query) (next query))
+ :delete (first (jdbc/do-prepared (first query) (next query)))
+ (assert false (str "Unknown query type: " type)))))))