querydsl oracle bulk insert

34 views
Skip to first unread message

Razmik Mkrtchyan

unread,
Jan 30, 2018, 2:48:40 AM1/30/18
to Querydsl

I want to do bulk_insert on Oracle by querydsl.

I use insert.setBatchToBulk(true) and querydsl as a results generates following query



INSERT ALL
INTO mytable (column1, column2, column_n) VALUES (expr1, expr2, expr_n)
INTO mytable (column1, column2, column_n) VALUES (expr1, expr2, expr_n)
select * from dual


This query execution(executeWithKeys()) in oracle brings unique constraint error , reason of unique pk.

fore more in image



Please see following  discussion 

https://github.com/querydsl/querydsl/issues/2246




35400232-9c510e5e-020f-11e8-80bc-619ffce315f3.png
Reply all
Reply to author
Forward
0 new messages