Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330990 - Test suite eclipselink.jpa.wdf.test does not pass on Derby
Summary: Test suite eclipselink.jpa.wdf.test does not pass on Derby
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Adrian Goerler CLA
QA Contact:
URL:
Whiteboard: derby, test
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-24 02:05 EST by Adrian Goerler CLA
Modified: 2022-06-09 10:06 EDT (History)
2 users (show)

See Also:


Attachments
proposed patch (7.88 KB, patch)
2010-11-25 08:34 EST, Adrian Goerler CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Goerler CLA 2010-11-24 02:05:26 EST
Many tests of the"WDF" test suite fail. The underlying test model assumes the existence of a comparable BINARY column (CHAR (n) FOR BIT DATA on Derby). EclipseLink's forward mapper always creates a BLOB column for binary data. Hence creation of the test model fails.
Comment 1 Adrian Goerler CLA 2010-11-25 08:34:42 EST
Created attachment 183848 [details]
proposed patch

- adjusts the data type to CHAR () FOR BIT DATA for BINARY columns used in the WDF test suite

- skips SEQUENCE tests as Derby does not support sequences

- uses ParameterMetadata to determine JDBC type of host variables for setting NULL values
Comment 2 Adrian Goerler CLA 2010-11-26 02:44:20 EST
Checked in at #8570.

Reviewed by Michael

Tested on Derby 10.6:

Core SRG, JPA SRG, JPA LRG, WDF -> OK
Core LRG: DistributedCacheModel tests hang waiting on a semaphore + 9 failures (sames issue without this patch)
Comment 3 Michael OBrien CLA 2011-01-27 11:32:56 EST
>see update for new Pagination and Sequencing support for Derby 10.6 - 10.7 submitted in bug# 323897 and bug# 335464
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:06:04 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink