Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344669 - [DB] Crash detection fails when using Oracle JDBC
Summary: [DB] Crash detection fails when using Oracle JDBC
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.db (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eike Stepper CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 270428
  Show dependency tree
 
Reported: 2011-05-04 04:50 EDT by Erdal Karaca CLA
Modified: 2013-06-27 03:31 EDT (History)
2 users (show)

See Also:


Attachments
applied the pattern described in the bug report (4.27 KB, patch)
2011-05-04 04:52 EDT, Erdal Karaca CLA
no flags Details | Diff
the previous patch contained too much (867 bytes, patch)
2011-05-04 04:54 EDT, Erdal Karaca CLA
no flags Details | Diff
Some more locations to apply that pattern (1.77 KB, patch)
2011-05-05 09:23 EDT, Erdal Karaca 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-05-04 04:50:13 EDT
In most cases the Oracle JDBC driver returns BigDecimal or BigInteger when you expect a Long/Integer/Double.
In such cases I have been using this pattern:

((Number)numericValueReturnedByOracleResultSet).longValue()|intValue()|...Value()
Comment 1 Erdal Karaca CLA 2011-05-04 04:52:06 EDT
Created attachment 194680 [details]
applied the pattern described in the bug report
Comment 2 Erdal Karaca CLA 2011-05-04 04:54:07 EDT
Created attachment 194681 [details]
the previous patch contained too much

this patch only affects MetaDataManager
Comment 3 Erdal Karaca CLA 2011-05-05 09:23:45 EDT
Created attachment 194829 [details]
Some more locations to apply that pattern
Comment 4 Eike Stepper CLA 2011-06-23 03:58:02 EDT
Moving all open enhancement requests to 4.1
Comment 5 Eike Stepper CLA 2012-08-14 22:52:02 EDT
Moving all open issues to 4.2. Open bugs can be ported to 4.1 maintenance after they've been fixed in master.
Comment 6 Eike Stepper CLA 2012-11-01 23:49:27 EDT
I think I already fixed most of those. The only place with wrong casts I could find now is HorizontalBranchingMappingStrategyWithRanges.ImportListHandler.handleRow()
Comment 7 Eike Stepper CLA 2012-11-01 23:50:16 EDT
commit 7236e96ba40506d6bf09e27517f8edf079bcadd0
Comment 8 Eike Stepper CLA 2013-06-27 03:31:59 EDT
Available in R20130613-1157 (4.2)