0

According to their documentation https://cljdoc.org/d/io.github.camsaul/toucan2/1.0.511/api/toucan2.insert#insert-returning-instances!, insert-returning-instance! should return the inserted record back. However, it's returning nil. The same function works for postgres SQL so I am wondering if there is any configuration needs to be done for it to support mysql or they haven't provided the support for mysql?

1
  • 1
    Mysql does not support the returning clause for inserts, which can explain the behaviour. However, this is an implementation detail that you should probably ask on their support forum. Commented May 28 at 21:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.