[
https://issues.jboss.org/browse/TEIIDDES-2061?page=com.atlassian.jira.plu...
]
Barry LaFond edited comment on TEIIDDES-2061 at 2/19/14 4:06 PM:
-----------------------------------------------------------------
So it looks like the issue here is Designer needs to recognize a *char* datatype as a
single character with length of 1.
1) Look at data-type managers and insure that mapping during import converts all *char*
with *length > 1* to a type *string*
2) Create validation rule to flag any *char* values with *length > 1*
* Warning Message something like:
** *The Teiid runtime datatype for char only recognizes a length of 1. Any additional
characters will be truncated.Suggest changing datatype to string.*
was (Author: blafond):
So it looks like the issue here is Designer needs to recognize a *char* datatype as a
single character with length of 1.
1) Look at data-type managers and insure that mapping during import converts all *char*
with *length > 1* to a type *string*
2) Create validation rule to flag any *char* values with *length > 1*
* Warning Message something like:
** *the Teiid runtime datatype for char only recognizes a length one. Additional
characters will be truncated.Suggest changing datatype to string.*
char[n+] field is truncated by importer
---------------------------------------
Key: TEIIDDES-2061
URL:
https://issues.jboss.org/browse/TEIIDDES-2061
Project: Teiid Designer
Issue Type: Bug
Components: Import/Export
Affects Versions: 8.3.1
Reporter: Johnathon Lee
Assignee: Barry LaFond
Fix For: 8.4, 8.3.2
Attachments: testErrors.vdb
truncation of Char[>1] fields to one character.
reproduction with simple VDB (to be attached):
SELECT asChar,asVarChar,asInt FROM "TestErrors"."TruncateCHAR";
the "asChar" field only returns a "C" and the asVarChar returns
the complete value.
That is the expected behavior, per the Data Virtualization Reference Manual, char
datatype is a single Unicode character (java.lang.Character). However, the importer may
need to check for the occurrence of char[n+] and not assume char[1].
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira