Fixes #128 by adding a test

This commit is contained in:
Sean Corfield 2020-07-05 16:11:43 -07:00
parent 65296ee4ad
commit d443c28817
2 changed files with 7 additions and 0 deletions

View file

@ -4,6 +4,7 @@ Only accretive/fixative changes will be made from now on.
Changes made on **develop** since the 1.1.547 release:
* Fix #130 by implementing `clojure.lang.ILookup` on the three builder adapters.
* Fix #128 by adding a test for the "not found" arity of lookup on mapified result sets.
* Correct MySQL batch statement rewrite tip: it's `:rewriteBatchedStatements true` (plural). Also surface the batch statement tips in the **Tips & Tricks** page.
* Clarify how combining is interleaving with reducing in **Reducing and Folding with `plan`**.
* Use "JDBC URL" consistently everywhere (instead of "JDBC URI" in several places).

View file

@ -29,6 +29,12 @@
(testing "plan"
(is (= "Apple"
(reduce (fn [_ row] (reduced (:name row)))
nil
(jdbc/plan
ds-opts
["select * from fruit where appearance = ?" "red"]))))
(is (= "Banana"
(reduce (fn [_ row] (reduced (:no-such-column row "Banana")))
nil
(jdbc/plan
ds-opts