Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334793 - CHAR(2) column on Oracle not handled correctly (data truncated)
Summary: CHAR(2) column on Oracle not handled correctly (data truncated)
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 critical (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-19 10:26 EST by Mike Norman CLA
Modified: 2022-06-09 10:35 EDT (History)
1 user (show)

See Also:


Attachments
set attributeClassification to String for CHAR(nn) fields (1.88 KB, patch)
2011-01-19 11:27 EST, Mike Norman CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Norman CLA 2011-01-19 10:26:35 EST
{NB - an internal Oracle tester found this problem}

When parsing the JDBC metadata for a table column's type, a CHAR(2)
column (or any CHAR(NN) field) is not handled correctly. The
mappings attributeClassification is set to java.lang.Character which
leads to all values being truncated to a single character.

The proper attributeClassification is java.lang.String
Comment 1 Mike Norman CLA 2011-01-19 11:27:07 EST
Created attachment 187127 [details]
set attributeClassification to String for CHAR(nn) fields
Comment 2 Mike Norman CLA 2011-01-19 11:44:54 EST
fix in SVN revision: 8848
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:14:02 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:35:34 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink