From a8c1fad16c19a92ea3585965cc4ca08459d01723 Mon Sep 17 00:00:00 2001 From: Marc Prud'hommeaux Date: Sun, 24 Sep 2006 23:58:00 +0000 Subject: [PATCH] Fixed varbinaryTypeName and longVarbinaryTypeName to be "BLOB" (they were defaulting to "VARBINARY", which is not recognized under DB2 or Derby). git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449526 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/openjpa/jdbc/sql/AbstractDB2Dictionary.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractDB2Dictionary.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractDB2Dictionary.java index 4f4773355..22af396ea 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractDB2Dictionary.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractDB2Dictionary.java @@ -28,6 +28,8 @@ public abstract class AbstractDB2Dictionary bitTypeName = "SMALLINT"; smallintTypeName = "SMALLINT"; tinyintTypeName = "SMALLINT"; + longVarbinaryTypeName = "BLOB"; + varbinaryTypeName = "BLOB"; toUpperCaseFunction = "UPPER(CAST({0} AS VARCHAR(1000)))"; toLowerCaseFunction = "LOWER(CAST({0} AS VARCHAR(1000)))";