[jira] [Commented] (OFBIZ-5485) Improve induceFieldType() of ModelUtil.java to handle MSSQL NVARCHAR types

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-5485) Improve induceFieldType() of ModelUtil.java to handle MSSQL NVARCHAR types

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-5485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13870964#comment-13870964 ]

Christian Carlow commented on OFBIZ-5485:
-----------------------------------------

Hey Jacques,

I haven't actually selected or manipulated results with it yet but I will be doing so soon.  The function does now return one of "very-short", "short-varchar", "long-varchar" for NVARCHAR depending on the size of the field so I tested it to that extent.

> Improve induceFieldType() of ModelUtil.java to handle MSSQL NVARCHAR types
> --------------------------------------------------------------------------
>
>                 Key: OFBIZ-5485
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5485
>             Project: OFBiz
>          Issue Type: Improvement
>    Affects Versions: SVN trunk
>            Reporter: Christian Carlow
>         Attachments: OFBIZ-5485.patch
>
>
> When using the ModelInduceFromDb.jsp to import MSSQL data many of the fields were assigned to types like "invalid-nvarchar:0:50".  This is because the induceFieldType() of ModelUtil.java does not handle "NVARCHAR".  The function should be changed to allow NVARCHAR type.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)