openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mprud...@apache.org
Subject svn commit: r497715 - /incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
Date Fri, 19 Jan 2007 06:32:43 GMT
Author: mprudhom
Date: Thu Jan 18 22:32:42 2007
New Revision: 497715

URL: http://svn.apache.org/viewvc?view=rev&rev=497715
Log:
Fixed bug where mod operator wouldn't get inserted (for databases that support the % mod operator).

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=497715&r1=497714&r2=497715
==============================================================================
--- 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 22:32:42 2007
@@ -2381,7 +2381,7 @@
         else
             lhs.appendTo(buf);
 
-        if (mod)
+        if (mod && !supportsModOperator)
             buf.append(", ");
         else
             buf.append(" ").append(op).append(" ");



Mime
View raw message