db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r1140744 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/GeneratedColumnsTest.java
Date Tue, 28 Jun 2011 17:38:00 GMT
Author: rhillegas
Date: Tue Jun 28 17:38:00 2011
New Revision: 1140744

URL: http://svn.apache.org/viewvc?rev=1140744&view=rev
Log:
DERBY-5304: Add signum function to GeneratedColumnTest so that a newly added test case should
run on all platforms.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/GeneratedColumnsTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/GeneratedColumnsTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/GeneratedColumnsTest.java?rev=1140744&r1=1140743&r2=1140744&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/GeneratedColumnsTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/GeneratedColumnsTest.java
Tue Jun 28 17:38:00 2011
@@ -5490,7 +5490,7 @@ public class GeneratedColumnsTest extend
          "parameter style java\n" +
          "deterministic\n" +
          "no sql\n" +
-         "external name 'java.lang.Integer.signum'\n"
+         "external name 'org.apache.derbyTesting.functionTests.tests.lang.GeneratedColumnsTest.signum'\n"
         );
 
         goodStatement
@@ -5657,6 +5657,13 @@ public class GeneratedColumnsTest extend
         return _minusCounter;
     }
 
+    public static   int signum( int i )
+    {
+        if ( i > 0 ) { return 1; }
+        else if ( i == 0 ) { return 0; }
+        else { return -1; }
+    }
+
     public  static  void    clearTriggerReports()
     {
         _triggerReports.clear();



Mime
View raw message