svn commit: r981619 - /ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Relation.java

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

svn commit: r981619 - /ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Relation.java

doogie-3
Author: doogie
Date: Mon Aug  2 17:42:11 2010
New Revision: 981619

URL: http://svn.apache.org/viewvc?rev=981619&view=rev
Log:
BUG FIX: Fix multiple keymaps in a relation, wasn't separated by AND.

Modified:
    ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Relation.java

Modified: ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Relation.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Relation.java?rev=981619&r1=981618&r2=981619&view=diff
==============================================================================
--- ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Relation.java (original)
+++ ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Relation.java Mon Aug  2 17:42:11 2010
@@ -76,6 +76,7 @@ public final class Relation extends Atom
         sb.append(' ').append(entityName);
         sb.append(" ON");
         for (int i = 0; i < keyMaps.size(); i++) {
+            if (i != 0) sb.append(" AND ");
             sb.append(' ');
             keyMaps.get(i).appendTo("cur", "other", sb);
         }