next.jdbc.sql/insert!
ignores :options
when using next.jdbc/with-options
and next.jdbc/with-logging
together.
#242
Labels
bug
Something isn't working
Describe the bug
next.jdbc.sql/insert!
ignores the:options
specified using thenext.jdbc/with-options
wrapper ifnext.jdbc/with-logging
is also used. This only happens if you use thenext.jdbc/with-logging
wrapper after usingnext.jdbc/with-options
. If you use the wrappers in reverse order, everything works as expected.To Reproduce
To reproduce run the following code:
The code throws an exception:
If you reverse the order of the wrappers, it works.
Expected behavior
The order of the wrappers shouldn't affect the behavior of
next.jdbc.sql/insert!
.project.clj/deps.edn
Environment (please complete the following information):
Additional Context
We think that the problem is in the call to
next.jdbc.sql.builder/for-insert
function innext.jdbc.sql/insert!
. It doesn't take into account the nesting of:connectable
s.The text was updated successfully, but these errors were encountered: