empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r1300833 - /empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/expr/column/DBConcatExpr.java
Date Thu, 15 Mar 2012 08:04:38 GMT
Author: doebele
Date: Thu Mar 15 08:04:38 2012
New Revision: 1300833

URL: http://svn.apache.org/viewvc?rev=1300833&view=rev
Log:
EMPIREDB-126
minor fix in DBConcatExpr.equals

Modified:
    empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/expr/column/DBConcatExpr.java

Modified: empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/expr/column/DBConcatExpr.java
URL: http://svn.apache.org/viewvc/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/expr/column/DBConcatExpr.java?rev=1300833&r1=1300832&r2=1300833&view=diff
==============================================================================
--- empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/expr/column/DBConcatExpr.java
(original)
+++ empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/expr/column/DBConcatExpr.java
Thu Mar 15 08:04:38 2012
@@ -162,4 +162,15 @@ public class DBConcatExpr extends DBColu
         }
         
     }
+    
+    @Override
+    public boolean equals(Object other)
+    {
+    	if (other instanceof DBConcatExpr)
+    	{	// Compare left and right
+    		return left .equals(((DBConcatExpr)other).left)
+    		    && right.equals(((DBConcatExpr)other).right);
+    	}
+    	return false;
+    }
 }



Mime
View raw message