db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r1130127 - in /db/derby/code/trunk/java: engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj testing/org/apache/derbyTesting/functionTests/tests/lang/SequenceTest.java
Date Wed, 01 Jun 2011 12:35:12 GMT
Author: rhillegas
Date: Wed Jun  1 12:35:12 2011
New Revision: 1130127

URL: http://svn.apache.org/viewvc?rev=1130127&view=rev
Log:
DERBY-5254: Unreserve the keywords which were added as part of implementing sequences.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/SequenceTest.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj?rev=1130127&r1=1130126&r2=1130127&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj Wed Jun
 1 12:35:12 2011
@@ -14466,6 +14466,7 @@ nonReservedKeyword()  :
 	|   tok = <CS>
 	|	tok = <CURDATE>
 	|	tok = <CURTIME>
+	|	tok = <CYCLE>
 	|	tok = <D>
 	|	tok = <DATA>
 	|	tok = <DATE>
@@ -14502,6 +14503,8 @@ nonReservedKeyword()  :
 	|	tok = <LOCKSIZE>
 	|	tok = <LOGGED>
 	|	tok = <LONG>
+	|	tok = <MAXVALUE>
+	|	tok = <MINVALUE>
 	|	tok = <MESSAGE_LOCALE>
 	|	tok = <METHOD>
 	|	tok = <MOD>

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/SequenceTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/SequenceTest.java?rev=1130127&r1=1130126&r2=1130127&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/SequenceTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/SequenceTest.java
Wed Jun  1 12:35:12 2011
@@ -546,4 +546,14 @@ public class SequenceTest extends Genera
              );
     }
     
+    /**
+     * Verify that the new sequence-related keywords are non-reserved keywords.
+     */
+    public void test_15_5254() throws Exception
+    {
+        Connection conn = openUserConnection(ALPHA);
+
+        goodStatement( conn, "create table t_5254( cycle int, minvalue int, maxvalue int
)" );
+        goodStatement( conn, "drop table t_5254" );
+    }
 }



Mime
View raw message