Commit fac9e118 authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

Add DEC and SESSION_USER as reserved words.

Move around a few other keywords which were not in the right category.
DEC and SESSION_USER are not yet committed to gram.y,
 since I'm in the middle of working on JOIN syntax too.
parent 757f832d
...@@ -94,15 +94,18 @@ VACUUM VERBOSE ...@@ -94,15 +94,18 @@ VACUUM VERBOSE
are allowed to be present as column labels, but not as identifiers: are allowed to be present as column labels, but not as identifiers:
<programlisting> <programlisting>
CASE COALESCE CROSS CURRENT CASE COALESCE CROSS CURRENT CURRENT_USER
DEC DECIMAL
ELSE END ELSE END
FALSE FOREIGN FALSE FOREIGN
GLOBAL GROUP GLOBAL GROUP
LOCAL LOCAL
NULLIF NULLIF NUMERIC
ORDER ORDER
POSITION PRECISION POSITION PRECISION
SESSION_USER
TABLE THEN TRANSACTION TRUE TABLE THEN TRANSACTION TRUE
USER
WHEN WHEN
</programlisting> </programlisting>
...@@ -115,9 +118,9 @@ ADD ALL ALTER AND ANY AS ASC ...@@ -115,9 +118,9 @@ ADD ALL ALTER AND ANY AS ASC
BEGIN BETWEEN BOTH BY BEGIN BETWEEN BOTH BY
CASCADE CAST CHAR CHARACTER CHECK CLOSE CASCADE CAST CHAR CHARACTER CHECK CLOSE
COLLATE COLUMN COMMIT CONSTRAINT CREATE COLLATE COLUMN COMMIT CONSTRAINT CREATE
CURRENT_DATE CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_DATE CURRENT_TIME CURRENT_TIMESTAMP
CURSOR CURSOR
DECIMAL DECLARE DEFAULT DELETE DESC DISTINCT DROP DECLARE DEFAULT DELETE DESC DISTINCT DROP
EXECUTE EXISTS EXTRACT EXECUTE EXISTS EXTRACT
FETCH FLOAT FOR FROM FULL FETCH FLOAT FOR FROM FULL
GRANT GRANT
...@@ -125,13 +128,13 @@ HAVING ...@@ -125,13 +128,13 @@ HAVING
IN INNER INSERT INTERVAL INTO IS IN INNER INSERT INTERVAL INTO IS
JOIN JOIN
LEADING LEFT LIKE LOCAL LEADING LEFT LIKE LOCAL
NAMES NATIONAL NATURAL NCHAR NO NOT NULL NUMERIC NAMES NATIONAL NATURAL NCHAR NO NOT NULL
ON OR OUTER ON OR OUTER
PARTIAL PRIMARY PRIVILEGES PROCEDURE PUBLIC PARTIAL PRIMARY PRIVILEGES PROCEDURE PUBLIC
REFERENCES REVOKE RIGHT ROLLBACK REFERENCES REVOKE RIGHT ROLLBACK
SELECT SET SUBSTRING SELECT SET SUBSTRING
TO TRAILING TRIM TO TRAILING TRIM
UNION UNIQUE UPDATE USER USING UNION UNIQUE UPDATE USING
VALUES VARCHAR VARYING VIEW VALUES VARCHAR VARYING VIEW
WHERE WITH WORK WHERE WITH WORK
</programlisting> </programlisting>
...@@ -183,7 +186,7 @@ CASCADED CATALOG COLLATION CONNECT CONNECTION ...@@ -183,7 +186,7 @@ CASCADED CATALOG COLLATION CONNECT CONNECTION
CONTINUE CONVERT CORRESPONDING COUNT CONTINUE CONVERT CORRESPONDING COUNT
DATE DEALLOCATE DEC DESCRIBE DESCRIPTOR DATE DEALLOCATE DEC DESCRIBE DESCRIPTOR
DIAGNOSTICS DISCONNECT DOMAIN DIAGNOSTICS DISCONNECT DOMAIN
END-EXEC ESCAPE EXCEPT EXCEPTION EXEC EXTERNAL ESCAPE EXCEPT EXCEPTION EXEC EXTERNAL
FIRST FOUND FIRST FOUND
GET GO GOTO GET GO GOTO
IDENTITY INDICATOR INPUT INTERSECT IDENTITY INDICATOR INPUT INTERSECT
...@@ -192,7 +195,7 @@ MAX MIN MODULE ...@@ -192,7 +195,7 @@ MAX MIN MODULE
OCTET_LENGTH OPEN OUTPUT OVERLAPS OCTET_LENGTH OPEN OUTPUT OVERLAPS
PREPARE PRESERVE PREPARE PRESERVE
ROWS ROWS
SCHEMA SECTION SESSION SESSION_USER SIZE SOME SCHEMA SECTION SESSION SIZE SOME
SQL SQLCODE SQLERROR SQLSTATE SUM SYSTEM_USER SQL SQLCODE SQLERROR SQLSTATE SUM SYSTEM_USER
TEMPORARY TRANSLATE TRANSLATION TEMPORARY TRANSLATE TRANSLATION
UNKNOWN UPPER USAGE UNKNOWN UPPER USAGE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment