openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtyle...@apache.org
Subject svn commit: r948380 - /openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java
Date Wed, 26 May 2010 09:55:36 GMT
Author: mtylenda
Date: Wed May 26 09:55:35 2010
New Revision: 948380

URL: http://svn.apache.org/viewvc?rev=948380&view=rev
Log:
OPENJPA-1667: Fix incorrect column type for LOB streaming in MySQL.

Modified:
    openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java

Modified: openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java?rev=948380&r1=948379&r2=948380&view=diff
==============================================================================
--- openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java
(original)
+++ openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java
Wed May 26 09:55:35 2010
@@ -394,7 +394,7 @@ public class MySQLDictionary
     @Override
     public String getTypeName(Column col) {
         if (col.getType() == Types.BLOB) {
-            if (col.getSize() == 0)   // unknown size
+            if (col.getSize() <= 0)   // unknown size
                 return blobTypeName;  // return old default of 64KB
             else if (col.getSize() <= 255)
                 return tinyBlobTypeName;



Mime
View raw message