db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r714188 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/GeneratedColumnsTest.java
Date Fri, 14 Nov 2008 23:30:17 GMT
Author: rhillegas
Date: Fri Nov 14 15:30:16 2008
New Revision: 714188

URL: http://svn.apache.org/viewvc?rev=714188&view=rev
Log:
DERBY-481: Add negative test cases for generation clauses which mention CURRENT SCHEMA and
CURRENT SQLID.

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=714188&r1=714187&r2=714188&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
Fri Nov 14 15:30:16 2008
@@ -1487,6 +1487,16 @@
              UNSTABLE_RESULTS,
              "create table t_br_2( a int, b varchar( 128 ) generated always as ( session_user
) )"
              );
+        expectCompilationError
+            (
+             UNSTABLE_RESULTS,
+             "create table t_br_2( a int, b date generated always as ( current schema ) )"
+             );
+        expectCompilationError
+            (
+             UNSTABLE_RESULTS,
+             "create table t_br_2( a int, b date generated always as ( current sqlid ) )"
+             );
     }
 
     /**



Mime
View raw message