Hi jOOQ UG,
We've been using jooq pro 3.18.17 and since upgrading to version 3.19.* we've been having problems with our Oracle db. We've identified that the multiple insert generates a query with "select" in stead of the VALUES ( ) part of the query. This only happens with multiple records in the List.
So this:
dsl.insertInto(<COLUMNS>)
.valuesOfRecords(<VALUES LIST>)
Translates into:
`INSERT INTO <TABLE> (<COLUMNS>) SELECT <VALUES> SELECT <VALUES>`
Sending this to the database results in an error that it can't see FROM where it expected it in the select.
To reiterate, when the list only has 1 record it does translate into a correct query:
`INSERT INTO <TABLE> (<COLUMNS>) VALUES (<VALUES>)`
What is going on? Is this a bug? Are we not seeing something obvious?
Cheers,
Marnix