Fix documentation of next.jdbc/execute-batch!
Searching for documentation for `next.jdbc/execute-batch!`, I tried to
execute the "equivalent to" examples of the `next.jdbc.sql/insert-multi!`
documentation, but encountered:
```
java.lang.ClassCastException: class clojure.lang.PersistentArrayMap cannot be cast to class java.sql.PreparedStatement
```
Fixes: 3ed1f4b99c
This commit is contained in:
parent
f9bfb1248a
commit
295fd5ddf5
1 changed files with 4 additions and 4 deletions
|
|
@ -117,8 +117,8 @@ will use `execute-batch!` under the hood, instead of `execute!`, as follows:
|
||||||
{:batch true})
|
{:batch true})
|
||||||
;; equivalent to
|
;; equivalent to
|
||||||
(jdbc/execute-batch! ds
|
(jdbc/execute-batch! ds
|
||||||
["INSERT INTO address (name,email) VALUES (?,?)"
|
"INSERT INTO address (name,email) VALUES (?,?)"
|
||||||
["Stella" "stella@artois.beer"]
|
[["Stella" "stella@artois.beer"]
|
||||||
["Waldo" "waldo@lagunitas.beer"]
|
["Waldo" "waldo@lagunitas.beer"]
|
||||||
["Aunt Sally" "sour@lagunitas.beer"]]
|
["Aunt Sally" "sour@lagunitas.beer"]]
|
||||||
{:return-keys true :return-generated-keys true})
|
{:return-keys true :return-generated-keys true})
|
||||||
|
|
@ -131,8 +131,8 @@ will use `execute-batch!` under the hood, instead of `execute!`, as follows:
|
||||||
{:batch true})
|
{:batch true})
|
||||||
;; equivalent to
|
;; equivalent to
|
||||||
(jdbc/execute-batch! ds
|
(jdbc/execute-batch! ds
|
||||||
["INSERT INTO address (name,email) VALUES (?,?)"
|
"INSERT INTO address (name,email) VALUES (?,?)"
|
||||||
["Stella" "stella@artois.beer"]
|
[["Stella" "stella@artois.beer"]
|
||||||
["Waldo" "waldo@lagunitas.beer"]
|
["Waldo" "waldo@lagunitas.beer"]
|
||||||
["Aunt Sally" "sour@lagunitas.beer"]]
|
["Aunt Sally" "sour@lagunitas.beer"]]
|
||||||
{:return-keys true :return-generated-keys true})
|
{:return-keys true :return-generated-keys true})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue