db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r545573 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/GroupByExpressionTest.java
Date Fri, 08 Jun 2007 18:00:07 GMT
Author: myrnavl
Date: Fri Jun  8 11:00:06 2007
New Revision: 545573

URL: http://svn.apache.org/viewvc?view=rev&rev=545573
Log:
DERBY-2230 : test added to verify fix of assert thrown in ByteCode Conditional on then/else
stack mismatch.
Patch contributed by Mayuresh Nirhali.

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

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/GroupByExpressionTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/GroupByExpressionTest.java?view=diff&rev=545573&r1=545572&r2=545573
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/GroupByExpressionTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/GroupByExpressionTest.java
Fri Jun  8 11:00:06 2007
@@ -185,6 +185,12 @@
                 " group by (case when c1 = 1 then 2 else 1 end)",
                 new int[][] {{1,32}, {2, 21}});
         
+        // Conditional Derby-2230.
+        verifyQueryResults(
+                "cond",
+                "select case when 1 = 1 then 'z' else substr('abc',1,1) end from test",
+                new String[][] {{"z"}});
+
         // length
         verifyQueryResults(
                 "length",



Mime
View raw message