]
Barry LaFond commented on TEIIDDES-2865:
----------------------------------------
[~mkralik] looking at Teiid's code (JDBCMetadataProcessor.java) I'm seeing the
following:
column.setPrecision(columnSize);
column.setScale(scale); //assume that null means 0
column.setLength(columnSize);
so column size is set for both precision and length
In Designer's RelationalModelProcessor.java, we're setting:
column.setLength(columnSize);
however, precision isn't being set to columnSize unless it's a numeric Runtime
type. I'm going remove that logic to match Teiid runtime's logic.
JDBC importer imports MSSQL Server datatype numeric(9,[0-9]) as
bigdecimal with zero precision
----------------------------------------------------------------------------------------------
Key: TEIIDDES-2865
URL:
https://issues.jboss.org/browse/TEIIDDES-2865
Project: Teiid Designer
Issue Type: Bug
Components: Import/Export
Affects Versions: 10.0, 9.0.5, 9.0.6, 9.0.7
Reporter: Debbie Steigner
Assignee: Barry LaFond
Fix For: 11.1, 11.1.1
Attachments: debTest2Import.png, debtestImport.png, importedColumns.png
JDBC importer imports MSSQL Server datatype numeric(9,[0-9]) as bigdecimal with zero
precision and should be 9. I believe this
https://issues.jboss.org/browse/TEIIDDES-2746
may have changed the behavior, in version 9.0.3 it imports correctly.
You can use
jdbc:sqlserver://ENGNTDBS14.mw.lab.eng.bos.redhat.com:1433;databaseName=mss_eds
user - mss_eds
password - mss_eds
table - debtest2, both columns are numeric(9,2)