Query query = dslContext.insertInto("TABLENAME")
.set("COLUMN1",(Long) null)
.set("COLUMN2",(Long) null)
.set("COLUMN3",(Integer) null)
.set("COLUMN4",(String) null)
.set("COLUMN5",(Integer) null)
.set("COLUMN6",(Long) null);
BatchBindStep batch = dslContext.batch(query);
for (Object obj : arrOfObjects) {
batch = batch.bind(obj.getVariable1(), obj.getVariable2(),
obj.getVariable3(), obj.getVariable4(), obj.getVariable5(),obj.getVariable6());
}
// although all the data looks to be inserted correctly, -2 is returned in each position of the 'result' array
int[] result = batch.execute();
E code here...
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/9b75bb1a-9dc4-4458-936c-0a6c732a6574%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/CAB4ELO5LQitqSDUc%2Bx0sWp-6rT46niv%3DwKjdxuWf6addYn6_Zg%40mail.gmail.com.