From 65b1ed4712de8b2bc47f396b8d1a9d859939e38e Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sat, 27 Sep 1997 16:42:21 +0000 Subject: [PATCH] Add fiel to list keywords. --- src/tools/SQL_keywords | 226 +++++++++++++++++++++++++++++++++ src/tools/make_keywords.README | 5 + 2 files changed, 231 insertions(+) create mode 100644 src/tools/SQL_keywords create mode 100644 src/tools/make_keywords.README diff --git a/src/tools/SQL_keywords b/src/tools/SQL_keywords new file mode 100644 index 0000000000..587e0a1bf9 --- /dev/null +++ b/src/tools/SQL_keywords @@ -0,0 +1,226 @@ +These are the standard SQL'92 keywords: +absolute +action +add +all +allocate +alter +and +any +are +as +asc +assertion +at +authorization +avg +begin +between +bit +bit_length +both +by +cascade +cascaded +case +cast +catalog +char +character +char_length +character_length +check +close +coalesce +collate +collation +column +commit +connect +connection +constraint +constraints +continue +convert +corresponding +count +create +cross +current +current_date +current_time +current_timestamp +current_user +cursor +date +day +deallocate +dec +decimal +declare +default +deferrable +deferred +delete +desc +describe +descriptor +diagnostics +disconnect +distinct +domain +double +drop +else +end +end-exec +escape +except +exception +exec +execute +eists +external +extract +false +fetch +first +float +for +foreign +found +from +full +get +global +go +goto +grant +group +having +hour +identity +immediate +in +indicator +initially +inner +input +insensititve +insert +int +integer +intersect +interval +into +is +isolation +join +key +language +last +leading +left +level +like +local +lower +match +max +min +minute +module +month +names +national +natural +nchar +next +no +not +null +nullif +numeric +octet_length +of +on +only +open +option +or +ordered +outer +output +overlaps +partial +postion +precision +prepare +preserve +primary +prior +privledges +procedure +public +read +real +references +relative +restrict +revoke +right +rollback +rows +schema +scroll +second +section +select +session +session_user +set +size +smallint +some +sql +sqlcode +sqlerror +sqlstate +substring +sum +system_user +table +temporary +then +time +timestamp +timezone_hour +timezone_minute +to +trailing +transaction +translate +translation +trim +true +union +unique +unknown +update +upper +usage +user +using +value +values +varchar +varying +view +when +whenever +where +with +work +write +year +zone diff --git a/src/tools/make_keywords.README b/src/tools/make_keywords.README new file mode 100644 index 0000000000..b79633f857 --- /dev/null +++ b/src/tools/make_keywords.README @@ -0,0 +1,5 @@ +To get a list of keywords compared to SQL'92, take the keywords out of +backend/parser/keywords.c and tools/SQL_keywords. + +Then run sdif with the PostgreSQL keyword file first, then the SQL'92 +keywords.