Re: executeBatch() return SUCCESS_NO_INFO values - version 8.0.26
Hi Gil,
Yes. This happens when the insert query is rewritten to avoid sending multiple calls to the server. So, although you have add five commands to your batch, only one containing all the values was actually executed. As a side effect Connector/J is not able to compute the exact update count for each one of the commands and this is why it returns `SUCCESS_NO_INFO` for all.
You can read more about this in the description of the connection property
rewriteBatchedStatements. Setting this property as `false` will make Connector/J return the exact update count for each one of the batched commands, but it will also be much slower executing them as a whole.
IHTH
Subject
Written By
Posted
November 17, 2021 04:52PM
Re: executeBatch() return SUCCESS_NO_INFO values - version 8.0.26
November 18, 2021 04:42AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.