Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344231 - [DB] Improve Statement.executeBatch result checking
Summary: [DB] Improve Statement.executeBatch result checking
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.db (show other bugs)
Version: 4.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Eike Stepper CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard: Lighter, Faster and Better
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-29 01:20 EDT by Erdal Karaca CLA
Modified: 2012-10-28 06:41 EDT (History)
4 users (show)

See Also:


Attachments
Check whether executeBatch() returns Statement.SUCCESS_NO_INFO instead of the count of updates/inserts/deletes (1.48 KB, patch)
2011-04-29 01:22 EDT, Erdal Karaca CLA
no flags Details | Diff
Patch v2 (4.79 KB, patch)
2011-07-06 04:16 EDT, Eike Stepper CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erdal Karaca CLA 2011-04-29 01:20:57 EDT
Some JDBC drivers (such as Oracle) do not always return the count of updated/inserted rows when using a batch execution. Though, they succeed and just return Statement.SUCCESS_NO_INFO instead of the count of updates/inserts.
Comment 1 Erdal Karaca CLA 2011-04-29 01:22:03 EDT
Created attachment 194327 [details]
Check whether executeBatch() returns Statement.SUCCESS_NO_INFO instead of the count of updates/inserts/deletes
Comment 2 Eike Stepper CLA 2011-06-23 03:59:02 EDT
Moving all open enhancement requests to 4.1
Comment 3 Eike Stepper CLA 2011-07-06 04:16:55 EDT
Created attachment 199168 [details]
Patch v2

A slightly nicer version.

Stefan, it seems as if this doesn't need to be ported to the other mapping strategies because only in non-audit the moving of list elements can happen. Right?
Comment 4 Eike Stepper CLA 2011-07-06 04:19:20 EDT
Committed revision 8613
Comment 5 Eike Stepper CLA 2012-09-21 07:18:34 EDT
Closing.
Comment 6 Silvestre Martins CLA 2012-10-25 05:09:50 EDT
This issue is still reproducible in Oracle.
I could see that the code that this patch changes is not present in last version anymore. It was removed afterwards by commit from https://bugs.eclipse.org/bugs/show_bug.cgi?id=366686.

Was this intentional?
Comment 7 Eike Stepper CLA 2012-10-28 05:26:59 EDT
> Was this intentional?

Hmm, I doubt it. Can you please submit a new bugzilla with a new patch? Then I can apply it quickly...
Comment 8 Silvestre Martins CLA 2012-10-28 06:41:36 EDT
Created bugzilla https://bugs.eclipse.org/bugs/show_bug.cgi?id=392993