Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not supported jdbc statement function 'executeBatch' #490

Closed
laura098 opened this issue Sep 26, 2018 · 3 comments
Closed

not supported jdbc statement function 'executeBatch' #490

laura098 opened this issue Sep 26, 2018 · 3 comments

Comments

@laura098
Copy link

The batch update function of tibco is not supported in the citrus jdbc adapter. This function is needed for all inserts that affect more than one row. And all updates which gets a list of different where-clauses.
Please see the attached file for some screenshots.

Best Regards,
Laura
JDBC-Batch Update-Bug.docx

@svettwer
Copy link
Contributor

svettwer commented Oct 1, 2018

Hi!

Yes this is absolutely the case. We've just implemented a set of driver functionality with the idea of extending the driver over time and on demand.

Thx for reporting your demand on this feature! 👍

BR,
Sven

@svettwer
Copy link
Contributor

Further refinement information:

The interface for batch functionality includes three methods:

  1. void addBatch( String sql ) throws SQLException;
  2. void clearBatch() throws SQLException;
  3. int[] executeBatch() throws SQLException;

executeBatch() requires some more implementation on driver side to ensure that the updated rows count is simulated accurately. The exchanged Citrus JDBC messages contain the amount of affected rows, so that there should be minimum changes required on server side if any.

@svettwer
Copy link
Contributor

closed in favor of citrusframework/citrus-db#36 as the implementation effort goes into the driver

@svettwer svettwer removed this from the v2.9.0 milestone Feb 11, 2019
@svettwer svettwer removed their assignment Feb 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants