db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r519512 - /db/ojb/trunk/src/java/org/apache/ojb/broker/metadata/JdbcTypesHelper.java
Date Sun, 18 Mar 2007 01:50:35 GMT
Author: arminw
Date: Sat Mar 17 18:50:34 2007
New Revision: 519512

URL: http://svn.apache.org/viewvc?view=rev&rev=519512
Log:
fix OJB-132

Modified:
    db/ojb/trunk/src/java/org/apache/ojb/broker/metadata/JdbcTypesHelper.java

Modified: db/ojb/trunk/src/java/org/apache/ojb/broker/metadata/JdbcTypesHelper.java
URL: http://svn.apache.org/viewvc/db/ojb/trunk/src/java/org/apache/ojb/broker/metadata/JdbcTypesHelper.java?view=diff&rev=519512&r1=519511&r2=519512
==============================================================================
--- db/ojb/trunk/src/java/org/apache/ojb/broker/metadata/JdbcTypesHelper.java (original)
+++ db/ojb/trunk/src/java/org/apache/ojb/broker/metadata/JdbcTypesHelper.java Sat Mar 17 18:50:34
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: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message