No id returned (mysql2)
returns
I need Id. Tried to add
.execute()
a the end but same thing.2 Replies
Did you try
.returning()
after the insert?
But that depends on the db you are using.MySql doesn't have the returning method.
But if you are using the
.$default()
method, MySql will not return back the id because technically you provided it to the DB via your custom default