Replies: 1 comment 3 replies
-
That's because the driver (mysql-connector-java) returns only the first generated key in that case. Multi-row insert ("batch insert" means different thing in JDBC) has several limitations and this is one of them. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
when insert multiple new items, only this first item has primary key value in return
like:
{id=1,...},
{id=null,...},
{id=null,...}
Beta Was this translation helpful? Give feedback.
All reactions