db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Armin Waibel (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (OJB-132) Repository load fails on Turkish
Date Sun, 18 Mar 2007 01:53:09 GMT

     [ https://issues.apache.org/jira/browse/OJB-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Armin Waibel resolved OJB-132.
------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.5

Hi Mike,

thanks for the patch!
Fixed in JdbcTypesHelper class.

regards,
Armin


> Repository load fails on Turkish
> --------------------------------
>
>                 Key: OJB-132
>                 URL: https://issues.apache.org/jira/browse/OJB-132
>             Project: OJB
>          Issue Type: Bug
>    Affects Versions: 1.0.4
>            Reporter: Mike Perham
>             Fix For: 1.0.5
>
>
> The problem is due to the use of toLowerCase() in JdbcTypesHelper which uses the default
system locale.  Turkish has different casing rules so the lower of "INTEGER" is NOT "integer".
 The fix is to force the use of American locale:
>         result = (JdbcType) jdbcObjectTypesFromName.get(typeName.toLowerCase(Locale.US));
> Caused by: org.apache.ojb.broker.OJBRuntimeException: The type INTEGER can not be handled
by OJB. Pl
> ease specify only types as defined by java.sql.Types.
>         at org.apache.ojb.broker.metadata.JdbcTypesHelper.getJdbcTypeByName(Unknown Source)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message