| Summary: | Problems in CustomFeaturesJUnitTestSuite | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Andrei Ilitchev <andrei.ilitchev> | ||||
| Component: | Eclipselink | Assignee: | Project Inbox <eclipselink.orm-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Andrei Ilitchev
Created attachment 181103 [details]
Suggested patch
After fixing cache clearing it becomes apparent that not all tests work on all versions of Oracle db. That's why Oracle db version is now used.
testNamedStoredProcedureInOutQuery (returning NCHAR as an OUT stored procedure parameter) doesn't work on Oracle db versions before 11.2.0.2.
Test writing xml into the db and then reading it back and comparing with original (testNamedStoredProcedureCursorQuery, testNCharXMLType) require special handling for Oracle db 11.2.0.2
Apparently Oracle db 11.2.0.2 (or at least the instance usd by QA) returns formatted XML, which is not equal to the original one (that may be formmatted differently). The workaround for now is to remove the formatting for the comparison. The solution would be one of the two:
if formatted xml returned from Oracle 11.2.0.2 db is the bug - then it should be fixed;
if it's a feature, then it should be switched off on the testing db (the suggested way to do that copied from Oracle bug is described in the comment to compare method).
Checked the patch into trunk. Reviewed by Yiping. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |