Author: arminw
Date: Sat Mar 17 18:50:11 2007
New Revision: 519511
URL: http://svn.apache.org/viewvc?view=rev&rev=519511
Log:
fix OJB-132
Modified:
db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/JdbcTypesHelper.java
Modified:
db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/JdbcTypesHelper.java
URL:
http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/JdbcTypesHelper.java?view=diff&rev=519511&r1=519510&r2=519511
==============================================================================
---
db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/JdbcTypesHelper.java
(original)
+++
db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/JdbcTypesHelper.java
Sat Mar 17 18:50:11 2007
@@ -126,7 +126,7 @@
public static JdbcType getJdbcTypeByName(String typeName)
{
/*
- arminw:
+ arminw: OJB-132
Some user reported problems when using OJB with non-default
Localization. The
conversion of sql type names e.g. Turkish 'BIGINT' to lower case will
not match 'bigint'
Hope that the specification of the localization will fix this.
@@ -147,7 +147,13 @@
*/
public static void setJdbcTypeByName(String typeName, JdbcType type)
{
- jdbcObjectTypesFromName.put(typeName, type);
+ /*
+ arminw: OJB-132
+ Some user reported problems when using OJB with non-default
Localization. The
+ conversion of sql type names e.g. Turkish 'BIGINT' to lower case will
not match 'bigint'
+ Hope that the specification of the localization will fix this.
+ */
+ jdbcObjectTypesFromName.put(typeName.toLowerCase(Locale.ENGLISH),
type);
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]