Fork me on GitHub
#sql
<
2021-12-30
>
rmxm12:12:50

Hey, I am trying to insert record using next-jdbc while selects returns qualified keys, doing execute-one! or execute! on inserts is returning plain keywords as keys, do I need to qualify them on my own? I presume it doesnt know anything about entity when performing insert (as its just some sql) while in select keys are namespaced as it can be infered from selects output.

seancorfield16:12:42

@roguas next.jdbc just uses the information that the JDBC driver provides. For example, an insert on MySQL returns GENERATED_KEY but PostgreSQL returns column names.