openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mprud...@apache.org
Subject svn commit: r497701 - /incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
Date Fri, 19 Jan 2007 04:21:14 GMT
Author: mprudhom
Date: Thu Jan 18 20:21:13 2007
New Revision: 497701

URL: http://svn.apache.org/viewvc?view=rev&rev=497701
Log:
Fixed incorrect quoting of parameters in trim functions.

Modified:
    incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java

Modified: incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java?view=diff&rev=497701&r1=497700&r2=497701
==============================================================================
--- incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
(original)
+++ incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
Thu Jan 18 20:21:13 2007
@@ -215,9 +215,9 @@
     public String toUpperCaseFunction = "UPPER({0})";
     public String stringLengthFunction = "CHAR_LENGTH({0})";
     public String bitLengthFunction = "(OCTET_LENGTH({0}) * 8)";
-    public String trimLeadingFunction = "TRIM(LEADING '{1}' FROM {0})";
-    public String trimTrailingFunction = "TRIM(TRAILING '{1}' FROM {0})";
-    public String trimBothFunction = "TRIM(BOTH '{1}' FROM {0})";
+    public String trimLeadingFunction = "TRIM(LEADING {1} FROM {0})";
+    public String trimTrailingFunction = "TRIM(TRAILING {1} FROM {0})";
+    public String trimBothFunction = "TRIM(BOTH {1} FROM {0})";
     public String concatenateFunction = "({0}||{1})";
     public String concatenateDelimiter = "'OPENJPATOKEN'";
     public String substringFunctionName = "SUBSTRING";



Mime
View raw message