Hi,
This patch is to make LOCKS an non-reserved keyword to match the SQL
standards.
thanks,
Mamta
Index: java/engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj
===================================================================
--- java/engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj
(revision 54108)
+++ java/engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj (working
copy)
@@ -1822,6 +1822,7 @@
| <LARGE: "large">
| <LENGTH: "length">
| <LEVEL: "level">
+| <LOCKS: "locks">
| <LOCKSIZE: "locksize">
| <LOGGED: "logged">
| <MOD: "mod">
@@ -1903,7 +1904,6 @@
| <LCASE: "lcase">
| <LOCATE: "locate">
| <LOCK: "lock">
-| <LOCKS: "locks">
| <MESSAGE_LOCALE: "message_locale">
| <METHOD: "method">
| <MODE: "mode">
@@ -11351,6 +11351,7 @@
| tok = <LEVEL>
| tok = <LOCATE>
| tok = <LOCK>
+ | tok = <LOCKS>
| tok = <LOCKSIZE>
| tok = <LOGGED>
| tok = <LONG>