db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r1601169 - in /db/derby/code/trunk/java: engine/org/apache/derby/impl/sql/execute/RIBulkChecker.java testing/org/apache/derbyTesting/functionTests/tests/lang/_Suite.java
Date Sat, 07 Jun 2014 20:13:34 GMT
Author: myrnavl
Date: Sat Jun  7 20:13:33 2014
New Revision: 1601169

URL: http://svn.apache.org/r1601169
Log:
DERBY-6587; Foreign Key constraint not matched when using UUID in a composite foreign key
when using SYSCS_UTIL.SYSCS_IMPORT_TABLE
  test data and fix patch contributed by Pascal GrĂ¼n (pascal dot gruen at gmail dot com)

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/RIBulkChecker.java
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/_Suite.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/RIBulkChecker.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/RIBulkChecker.java?rev=1601169&r1=1601168&r2=1601169&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/RIBulkChecker.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/RIBulkChecker.java Sat
Jun  7 20:13:33 2014
@@ -366,11 +366,11 @@ public class RIBulkChecker 
 
 			result = fkCol.compare(refCol);
 
-			if (result == 1)
+			if (result > 0)
 			{
 				return GREATER_THAN;
 			}
-			else if (result == -1)
+			else if (result < 0)
 			{
 				return LESS_THAN;
 			}

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/_Suite.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/_Suite.java?rev=1601169&r1=1601168&r2=1601169&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/_Suite.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/_Suite.java
Sat Jun  7 20:13:33 2014
@@ -160,6 +160,7 @@ public class _Suite extends BaseTestCase
         suite.addTest(UngroupedAggregatesNegativeTest.suite());
         suite.addTest(XplainStatisticsTest.suite());
         suite.addTest(SelectivityTest.suite());
+        suite.addTest(Derby6587Test.suite());
         // Add the XML tests, which exist as a separate suite
         // so that users can "run all XML tests" easily.
         suite.addTest(XMLSuite.suite());



Mime
View raw message