db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r672029 - in /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang: AnsiSignatures.java AnsiSignaturesTest.java
Date Thu, 26 Jun 2008 21:01:32 GMT
Author: rhillegas
Date: Thu Jun 26 14:01:32 2008
New Revision: 672029

URL: http://svn.apache.org/viewvc?rev=672029&view=rev
Log:
DERBY-3652: Add test cases for char and long varchar.

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=672029&r1=672028&r2=672029&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
Thu Jun 26 14:01:32 2008
@@ -621,6 +621,46 @@
     public  static  String   varchar_String_String( Object a ) { return "-1"; }
     
     //
+    // CHAR
+    //
+    
+    // legal resolutions
+    public  static  String   char_String_String( String a ) { return a; }
+    public  static  String   char_String_String( byte a ) { return "-1"; }
+    public  static  String   char_String_String( short a ) { return "-1"; }
+    public  static  String   char_String_String( int a ) { return "-1"; }
+    public  static  String   char_String_String( long a ) { return "-1"; }
+    public  static  String   char_String_String( float a ) { return "-1"; }
+    public  static  String   char_String_String( double a ) { return "-1"; }
+    public  static  String   char_String_String( Byte a ) { return "-1"; }
+    public  static  String   char_String_String( Short a ) { return "-1"; }
+    public  static  String   char_String_String( Integer a ) { return "-1"; }
+    public  static  String   char_String_String( Long a ) { return "-1"; }
+    public  static  String   char_String_String( Float a ) { return "-1"; }
+    public  static  String   char_String_String( Double a ) { return "-1"; }
+    public  static  String   char_String_String( Object a ) { return "-1"; }
+    
+    //
+    // LONGVARCHAR
+    //
+    
+    // legal resolutions
+    public  static  String   longvarchar_String_String( String a ) { return a; }
+    public  static  String   longvarchar_String_String( byte a ) { return "-1"; }
+    public  static  String   longvarchar_String_String( short a ) { return "-1"; }
+    public  static  String   longvarchar_String_String( int a ) { return "-1"; }
+    public  static  String   longvarchar_String_String( long a ) { return "-1"; }
+    public  static  String   longvarchar_String_String( float a ) { return "-1"; }
+    public  static  String   longvarchar_String_String( double a ) { return "-1"; }
+    public  static  String   longvarchar_String_String( Byte a ) { return "-1"; }
+    public  static  String   longvarchar_String_String( Short a ) { return "-1"; }
+    public  static  String   longvarchar_String_String( Integer a ) { return "-1"; }
+    public  static  String   longvarchar_String_String( Long a ) { return "-1"; }
+    public  static  String   longvarchar_String_String( Float a ) { return "-1"; }
+    public  static  String   longvarchar_String_String( Double a ) { return "-1"; }
+    public  static  String   longvarchar_String_String( Object a ) { return "-1"; }
+    
+    //
     // Mixed types
     //
     public static long bigint__smallint_int_bigint_real_double

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=672029&r1=672028&r2=672029&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
Thu Jun 26 14:01:32 2008
@@ -246,6 +246,21 @@
             ( "varchar_String_String", "varchar( 10 )", new String[] { "varchar( 10 )" },
"'3.0'", "3.0" );
     }
 
+    public  void    test_char_String_String()
+        throws Exception
+    {
+        declareAndRunFunction
+            ( "char_String_String", "char( 10 )", new String[] { "char( 10 )" }, "'3.0'",
"3.0       " );
+    }
+
+    public  void    test_longvarchar_String_String()
+        throws Exception
+    {
+        // long varchar is not allowed as an argument type in a Derby routine
+        declareAndRunFunction
+            ( "longvarchar_String_String", "long varchar", new String[] { "varchar( 10 )"
}, "'3.0'", "3.0" );
+    }
+
     public  void    test_bigint__smallint_int_bigint_real_double()
         throws Exception
     {



Mime
View raw message