db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r664081 - in /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang: AnsiSignatures.java AnsiSignaturesTest.java
Date Fri, 06 Jun 2008 18:56:16 GMT
Author: rhillegas
Date: Fri Jun  6 11:56:16 2008
New Revision: 664081

URL: http://svn.apache.org/viewvc?rev=664081&view=rev
Log:
DERBY-3652: Add two test cases for signatures which mix types.

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

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/AnsiSignatures.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/AnsiSignatures.java?rev=664081&r1=664080&r2=664081&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/AnsiSignatures.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/AnsiSignatures.java
Fri Jun  6 11:56:16 2008
@@ -620,6 +620,27 @@
     public  static  String   varchar_String_String( Double a ) { return "-1"; }
     public  static  String   varchar_String_String( Object a ) { return "-1"; }
     
+    //
+    // Mixed types
+    //
+    public static long bigint__smallint_int_bigint_real_double
+        (
+         short a,
+         Integer b,
+         long c,
+         Float d,
+         double e
+         )
+    { return c; }
 
+    public static Long flipped_bigint__smallint_int_bigint_real_double
+        (
+         Integer a,
+         int b,
+         Long c,
+         float d,
+         Double e
+         )
+    { return c; }
 
 }

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/AnsiSignaturesTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/AnsiSignaturesTest.java?rev=664081&r1=664080&r2=664081&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/AnsiSignaturesTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/AnsiSignaturesTest.java
Fri Jun  6 11:56:16 2008
@@ -246,6 +246,32 @@
             ( "varchar_String_String", "varchar( 10 )", new String[] { "varchar( 10 )" },
"'3.0'", "3.0" );
     }
 
+    public  void    test_bigint__smallint_int_bigint_real_double()
+        throws Exception
+    {
+        declareAndRunFunction
+            (
+             "bigint__smallint_int_bigint_real_double",
+             "bigint",
+              new String[] { "smallint", "int", "bigint", "real", "double" },
+             "3, 3, 3, 3.0, 3.0",
+             "3"
+             );
+    }
+
+    public  void    test_flipped_bigint__smallint_int_bigint_real_double()
+        throws Exception
+    {
+        declareAndRunFunction
+            (
+             "flipped_bigint__smallint_int_bigint_real_double",
+             "bigint",
+              new String[] { "smallint", "int", "bigint", "real", "double" },
+             "3, 3, 3, 3.0, 3.0",
+             "3"
+             );
+    }
+
     ///////////////////////////////////////////////////////////////////////////////////
     //
     // SHOULD NOT RESOLVE



Mime
View raw message