batchInsert does not update record on success

9 views
Skip to first unread message

jonas.jh...@gmail.com

unread,
Jul 2, 2015, 12:37:19 PM7/2/15
to jooq...@googlegroups.com
If I do record.insert(), the record gets updated with the newly generated row id.
However in case of a batchInsert, all records don't get updated and the id is still null afterwards.
Is this intended behaviour?

Lukas Eder

unread,
Jul 15, 2015, 6:22:41 AM7/15/15
to jooq...@googlegroups.com
Hello,

It would be great to be able to fetch generated IDs (or to emulate INSERT .. RETURNING in general) via JDBC batch statements, but so far, we haven't found an easy way to do so. There's a pending feature request to track this, but I'm not very optimistic that it is even implementable:

Cheers,
Lukas

--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages