Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 330990

Summary: Test suite eclipselink.jpa.wdf.test does not pass on Derby
Product: z_Archived Reporter: Adrian Goerler <adrian.goerler>
Component: EclipselinkAssignee: Adrian Goerler <adrian.goerler>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.orm-inbox, michael.f.obrien
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard: derby, test
Attachments:
Description Flags
proposed patch none

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