[openjpa] branch master updated: OPENJPA-2567 @Lob on String results in TEXT not BLOB

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

[openjpa] branch master updated: OPENJPA-2567 @Lob on String results in TEXT not BLOB

struberg
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openjpa.git


The following commit(s) were added to refs/heads/master by this push:
     new 4bb1caa  OPENJPA-2567 @Lob on String results in TEXT not BLOB
4bb1caa is described below

commit 4bb1caa36dc753057790cb735f7e67ff24b4cef6
Author: Mark Struberg <[hidden email]>
AuthorDate: Fri Nov 2 10:38:53 2018 +0100

    OPENJPA-2567 @Lob on String results in TEXT not BLOB
---
 .../org/apache/openjpa/persistence/blob/mysql/TestClobColumnType.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/blob/mysql/TestClobColumnType.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/blob/mysql/TestClobColumnType.java
index 8b1b1d2..79e2344 100644
--- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/blob/mysql/TestClobColumnType.java
+++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/blob/mysql/TestClobColumnType.java
@@ -37,7 +37,7 @@ public class TestClobColumnType extends SingleEMFTestCase {
     private boolean _runTest = false; // only test with MySQL
 
     @Override
- public void setUp() throws Exception {
+    public void setUp() throws Exception {
 
         // create EMF solely to obtain a DBDictionary.
         // need to do this without ClobColumnEntity.class since it contains a column definition which might
@@ -89,7 +89,7 @@ public class TestClobColumnType extends SingleEMFTestCase {
 
     public void testDefaultLob() {
         if (_runTest) {
-            assertEquals(getDBDictionary().blobTypeName, getCol("defaultLob").getTypeIdentifier().getName());
+            assertEquals(getDBDictionary().clobTypeName, getCol("defaultLob").getTypeIdentifier().getName());
         }
     }
 }