1
Fork 0

update the reserved keywords to 2011 list

This commit is contained in:
Jake Wheat 2014-04-20 19:38:43 +03:00
parent 9b2ba2fb36
commit be79448414

View file

@ -1706,10 +1706,10 @@ means).
> _nonReservedWord :: [String] > _nonReservedWord :: [String]
> _nonReservedWord = > _nonReservedWord =
> ["a" > ["a"
> ,"abs"
> ,"absolute" > ,"absolute"
> ,"action" > ,"action"
> ,"ada" > ,"ada"
> ,"add"
> ,"admin" > ,"admin"
> ,"after" > ,"after"
> ,"always" > ,"always"
@ -1718,55 +1718,38 @@ means).
> ,"assignment" > ,"assignment"
> ,"attribute" > ,"attribute"
> ,"attributes" > ,"attributes"
> ,"avg"
> ,"before" > ,"before"
> ,"bernoulli" > ,"bernoulli"
> ,"breadth" > ,"breadth"
> ,"c" > ,"c"
> ,"cardinality"
> ,"cascade" > ,"cascade"
> ,"catalog" > ,"catalog"
> ,"catalog_name" > ,"catalog_name"
> ,"ceil"
> ,"ceiling"
> ,"chain" > ,"chain"
> ,"characteristics"
> ,"characters"
> ,"character_length"
> ,"character_set_catalog" > ,"character_set_catalog"
> ,"character_set_name" > ,"character_set_name"
> ,"character_set_schema" > ,"character_set_schema"
> ,"char_length" > ,"characteristics"
> ,"checked" > ,"characters"
> ,"class_origin" > ,"class_origin"
> ,"coalesce"
> ,"cobol" > ,"cobol"
> --,"code_units"
> ,"collation" > ,"collation"
> ,"collation_catalog" > ,"collation_catalog"
> ,"collation_name" > ,"collation_name"
> ,"collation_schema" > ,"collation_schema"
> ,"collect"
> ,"column_name" > ,"column_name"
> ,"command_function" > ,"command_function"
> ,"command_function_code" > ,"command_function_code"
> ,"committed" > ,"committed"
> ,"condition"
> ,"condition_number" > ,"condition_number"
> ,"connection"
> ,"connection_name" > ,"connection_name"
> ,"constraints"
> ,"constraint_catalog" > ,"constraint_catalog"
> ,"constraint_name" > ,"constraint_name"
> ,"constraint_schema" > ,"constraint_schema"
> ,"constructors" > ,"constraints"
> ,"contains" > ,"constructor"
> ,"convert" > ,"continue"
> ,"corr"
> ,"count"
> ,"covar_pop"
> ,"covar_samp"
> ,"cume_dist"
> ,"current_collation"
> ,"cursor_name" > ,"cursor_name"
> ,"data" > ,"data"
> ,"datetime_interval_code" > ,"datetime_interval_code"
@ -1777,7 +1760,6 @@ means).
> ,"defined" > ,"defined"
> ,"definer" > ,"definer"
> ,"degree" > ,"degree"
> ,"dense_rank"
> ,"depth" > ,"depth"
> ,"derived" > ,"derived"
> ,"desc" > ,"desc"
@ -1787,33 +1769,34 @@ means).
> ,"domain" > ,"domain"
> ,"dynamic_function" > ,"dynamic_function"
> ,"dynamic_function_code" > ,"dynamic_function_code"
> ,"equals" > ,"enforced"
> ,"every"
> ,"exception"
> ,"exclude" > ,"exclude"
> ,"excluding" > ,"excluding"
> ,"exp" > ,"expression"
> ,"extract"
> ,"final" > ,"final"
> ,"first" > ,"first"
> ,"floor" > ,"flag"
> ,"following" > ,"following"
> ,"fortran" > ,"fortran"
> ,"found" > ,"found"
> ,"fusion"
> ,"g" > ,"g"
> ,"general" > ,"general"
> ,"generated"
> ,"go" > ,"go"
> ,"goto" > ,"goto"
> ,"granted" > ,"granted"
> ,"hierarchy" > ,"hierarchy"
> ,"ignore"
> ,"immediate"
> ,"immediately"
> ,"implementation" > ,"implementation"
> ,"including" > ,"including"
> ,"increment" > ,"increment"
> ,"initially" > ,"initially"
> ,"input"
> ,"instance" > ,"instance"
> ,"instantiable" > ,"instantiable"
> ,"intersection" > ,"instead"
> ,"invoker" > ,"invoker"
> ,"isolation" > ,"isolation"
> ,"k" > ,"k"
@ -1823,42 +1806,39 @@ means).
> ,"last" > ,"last"
> ,"length" > ,"length"
> ,"level" > ,"level"
> ,"ln"
> ,"locator" > ,"locator"
> ,"lower"
> ,"m" > ,"m"
> ,"map" > ,"map"
> ,"matched" > ,"matched"
> ,"max"
> ,"maxvalue" > ,"maxvalue"
> ,"message_length" > ,"message_length"
> ,"message_octet_length" > ,"message_octet_length"
> ,"message_text" > ,"message_text"
> ,"min"
> ,"minvalue" > ,"minvalue"
> ,"mod"
> ,"more" > ,"more"
> ,"mumps" > ,"mumps"
> ,"name" > ,"name"
> ,"names" > ,"names"
> ,"nesting" > ,"nesting"
> ,"next" > ,"next"
> ,"normalize" > ,"nfc"
> ,"nfd"
> ,"nfkc"
> ,"nfkd"
> ,"normalized" > ,"normalized"
> ,"nullable" > ,"nullable"
> ,"nullif"
> ,"nulls" > ,"nulls"
> ,"number" > ,"number"
> ,"object" > ,"object"
> ,"octets" > ,"octets"
> ,"octet_length"
> ,"option" > ,"option"
> ,"options" > ,"options"
> ,"ordering" > ,"ordering"
> ,"ordinality" > ,"ordinality"
> ,"others" > ,"others"
> ,"overlay" > ,"output"
> ,"overriding" > ,"overriding"
> ,"p"
> ,"pad" > ,"pad"
> ,"parameter_mode" > ,"parameter_mode"
> ,"parameter_name" > ,"parameter_name"
@ -1869,23 +1849,19 @@ means).
> ,"partial" > ,"partial"
> ,"pascal" > ,"pascal"
> ,"path" > ,"path"
> ,"percentile_cont"
> ,"percentile_disc"
> ,"percent_rank"
> ,"placing" > ,"placing"
> ,"pli" > ,"pli"
> ,"position"
> ,"power"
> ,"preceding" > ,"preceding"
> ,"preserve" > ,"preserve"
> ,"prior" > ,"prior"
> ,"privileges" > ,"privileges"
> ,"public" > ,"public"
> ,"rank"
> ,"read" > ,"read"
> ,"relative" > ,"relative"
> ,"repeatable" > ,"repeatable"
> ,"respect"
> ,"restart" > ,"restart"
> ,"restrict"
> ,"returned_cardinality" > ,"returned_cardinality"
> ,"returned_length" > ,"returned_length"
> ,"returned_octet_length" > ,"returned_octet_length"
@ -1896,7 +1872,6 @@ means).
> ,"routine_name" > ,"routine_name"
> ,"routine_schema" > ,"routine_schema"
> ,"row_count" > ,"row_count"
> ,"row_number"
> ,"scale" > ,"scale"
> ,"schema" > ,"schema"
> ,"schema_name" > ,"schema_name"
@ -1916,32 +1891,25 @@ means).
> ,"source" > ,"source"
> ,"space" > ,"space"
> ,"specific_name" > ,"specific_name"
> ,"sqrt"
> ,"state" > ,"state"
> ,"statement" > ,"statement"
> ,"stddev_pop"
> ,"stddev_samp"
> ,"structure" > ,"structure"
> ,"style" > ,"style"
> ,"subclass_origin" > ,"subclass_origin"
> ,"substring" > ,"t"
> ,"sum"
> ,"tablesample"
> ,"table_name" > ,"table_name"
> ,"temporary" > ,"temporary"
> ,"ties" > ,"ties"
> ,"top_level_count" > ,"top_level_count"
> ,"transaction" > ,"transaction"
> ,"transaction_active"
> ,"transactions_committed" > ,"transactions_committed"
> ,"transactions_rolled_back" > ,"transactions_rolled_back"
> ,"transaction_active"
> ,"transform" > ,"transform"
> ,"transforms" > ,"transforms"
> ,"translate"
> ,"trigger_catalog" > ,"trigger_catalog"
> ,"trigger_name" > ,"trigger_name"
> ,"trigger_schema" > ,"trigger_schema"
> ,"trim"
> ,"type" > ,"type"
> ,"unbounded" > ,"unbounded"
> ,"uncommitted" > ,"uncommitted"
@ -1959,7 +1927,7 @@ means).
> reservedWord :: [String] > reservedWord :: [String]
> reservedWord = > reservedWord =
> ["add" > ["abs"
> --,"all" > --,"all"
> ,"allocate" > ,"allocate"
> ,"alter" > ,"alter"
@ -1967,13 +1935,18 @@ means).
> --,"any" > --,"any"
> ,"are" > ,"are"
> ,"array" > ,"array"
> --,"array_agg"
> ,"array_max_cardinality"
> ,"as" > ,"as"
> ,"asensitive" > ,"asensitive"
> ,"asymmetric" > ,"asymmetric"
> ,"at" > ,"at"
> ,"atomic" > ,"atomic"
> ,"authorization" > ,"authorization"
> --,"avg"
> ,"begin" > ,"begin"
> ,"begin_frame"
> ,"begin_partition"
> ,"between" > ,"between"
> ,"bigint" > ,"bigint"
> ,"binary" > ,"binary"
@ -1983,29 +1956,46 @@ means).
> ,"by" > ,"by"
> ,"call" > ,"call"
> ,"called" > ,"called"
> ,"cardinality"
> ,"cascaded" > ,"cascaded"
> ,"case" > ,"case"
> ,"cast" > ,"cast"
> ,"ceil"
> ,"ceiling"
> ,"char" > ,"char"
> ,"char_length"
> ,"character" > ,"character"
> ,"character_length"
> ,"check" > ,"check"
> ,"clob" > ,"clob"
> ,"close" > ,"close"
> ,"coalesce"
> ,"collate" > ,"collate"
> --,"collect"
> ,"column" > ,"column"
> ,"commit" > ,"commit"
> ,"condition"
> ,"connect" > ,"connect"
> ,"constraint" > ,"constraint"
> ,"continue" > ,"contains"
> ,"convert"
> --,"corr"
> ,"corresponding" > ,"corresponding"
> --,"count"
> --,"covar_pop"
> --,"covar_samp"
> ,"create" > ,"create"
> ,"cross" > ,"cross"
> ,"cube" > ,"cube"
> --,"cume_dist"
> ,"current" > ,"current"
> ,"current_catalog"
> --,"current_date" > --,"current_date"
> --,"current_default_transform_group" > --,"current_default_transform_group"
> --,"current_path" > --,"current_path"
> --,"current_role" > --,"current_role"
> ,"current_row"
> ,"current_schema"
> ,"current_time" > ,"current_time"
> ,"current_timestamp" > ,"current_timestamp"
> ,"current_transform_group_for_type" > ,"current_transform_group_for_type"
@ -2020,6 +2010,7 @@ means).
> ,"declare" > ,"declare"
> --,"default" > --,"default"
> ,"delete" > ,"delete"
> --,"dense_rank"
> ,"deref" > ,"deref"
> ,"describe" > ,"describe"
> ,"deterministic" > ,"deterministic"
@ -2032,62 +2023,80 @@ means).
> --,"element" > --,"element"
> ,"else" > ,"else"
> ,"end" > ,"end"
> ,"end_frame"
> ,"end_partition"
> ,"end-exec" > ,"end-exec"
> ,"equals"
> ,"escape" > ,"escape"
> --,"every"
> ,"except" > ,"except"
> ,"exec" > ,"exec"
> ,"execute" > ,"execute"
> ,"exists" > ,"exists"
> ,"exp"
> ,"external" > ,"external"
> ,"extract"
> --,"false" > --,"false"
> ,"fetch" > ,"fetch"
> ,"filter" > ,"filter"
> ,"first_value"
> ,"float" > ,"float"
> ,"floor"
> ,"for" > ,"for"
> ,"foreign" > ,"foreign"
> ,"frame_row"
> ,"free" > ,"free"
> ,"from" > ,"from"
> ,"full" > ,"full"
> ,"function" > ,"function"
> --,"fusion"
> ,"get" > ,"get"
> ,"global" > ,"global"
> ,"grant" > ,"grant"
> ,"group" > ,"group"
> --,"grouping" > --,"grouping"
> ,"groups"
> ,"having" > ,"having"
> ,"hold" > ,"hold"
> --,"hour" > --,"hour"
> ,"identity" > ,"identity"
> ,"immediate"
> ,"in" > ,"in"
> ,"indicator" > ,"indicator"
> ,"inner" > ,"inner"
> ,"inout" > ,"inout"
> ,"input"
> ,"insensitive" > ,"insensitive"
> ,"insert" > ,"insert"
> ,"int" > ,"int"
> ,"integer" > ,"integer"
> ,"intersect" > ,"intersect"
> --,"intersection"
> ,"interval" > ,"interval"
> ,"into" > ,"into"
> ,"is" > ,"is"
> ,"isolation"
> ,"join" > ,"join"
> ,"lag"
> ,"language" > ,"language"
> ,"large" > ,"large"
> ,"last_value"
> ,"lateral" > ,"lateral"
> ,"lead"
> ,"leading" > ,"leading"
> ,"left" > ,"left"
> ,"like" > ,"like"
> ,"like_regex"
> ,"ln"
> ,"local" > ,"local"
> ,"localtime" > ,"localtime"
> ,"localtimestamp" > ,"localtimestamp"
> ,"lower"
> ,"match" > ,"match"
> --,"max"
> ,"member" > ,"member"
> ,"merge" > ,"merge"
> ,"method" > ,"method"
> --,"min"
> --,"minute" > --,"minute"
> ,"mod"
> ,"modifies" > ,"modifies"
> --,"module" > --,"module"
> --,"month" > --,"month"
@ -2099,10 +2108,17 @@ means).
> ,"new" > ,"new"
> ,"no" > ,"no"
> ,"none" > ,"none"
> ,"normalize"
> ,"not" > ,"not"
> ,"nth_value"
> ,"ntile"
> --,"null" > --,"null"
> ,"nullif"
> ,"numeric" > ,"numeric"
> ,"octet_length"
> ,"occurrences_regex"
> ,"of" > ,"of"
> ,"offset"
> ,"old" > ,"old"
> ,"on" > ,"on"
> ,"only" > ,"only"
@ -2111,16 +2127,27 @@ means).
> ,"order" > ,"order"
> ,"out" > ,"out"
> ,"outer" > ,"outer"
> ,"output"
> ,"over" > ,"over"
> ,"overlaps" > ,"overlaps"
> ,"overlay"
> ,"parameter" > ,"parameter"
> ,"partition" > ,"partition"
> ,"percent"
> --,"percent_rank"
> --,"percentile_cont"
> --,"percentile_disc"
> ,"period"
> ,"portion"
> ,"position"
> ,"position_regex"
> ,"power"
> ,"precedes"
> ,"precision" > ,"precision"
> ,"prepare" > ,"prepare"
> ,"primary" > ,"primary"
> ,"procedure" > ,"procedure"
> ,"range" > ,"range"
> --,"rank"
> ,"reads" > ,"reads"
> ,"real" > ,"real"
> ,"recursive" > ,"recursive"
@ -2145,8 +2172,10 @@ means).
> ,"rollback" > ,"rollback"
> ,"rollup" > ,"rollup"
> --,"row" > --,"row"
> ,"row_number"
> ,"rows" > ,"rows"
> ,"savepoint" > ,"savepoint"
> ,"scope"
> ,"scroll" > ,"scroll"
> ,"search" > ,"search"
> --,"second" > --,"second"
@ -2163,13 +2192,22 @@ means).
> ,"sqlexception" > ,"sqlexception"
> ,"sqlstate" > ,"sqlstate"
> ,"sqlwarning" > ,"sqlwarning"
> ,"sqrt"
> --,"start" > --,"start"
> ,"static" > ,"static"
> --,"stddev_pop"
> --,"stddev_samp"
> ,"submultiset" > ,"submultiset"
> ,"substring"
> ,"substring_regex"
> ,"succeeds"
> --,"sum"
> ,"symmetric" > ,"symmetric"
> ,"system" > ,"system"
> ,"system_time"
> --,"system_user" > --,"system_user"
> ,"table" > ,"table"
> ,"tablesample"
> ,"then" > ,"then"
> ,"time" > ,"time"
> ,"timestamp" > ,"timestamp"
@ -2177,9 +2215,14 @@ means).
> ,"timezone_minute" > ,"timezone_minute"
> ,"to" > ,"to"
> ,"trailing" > ,"trailing"
> ,"translate"
> ,"translate_regex"
> ,"translation" > ,"translation"
> ,"treat" > ,"treat"
> ,"trigger" > ,"trigger"
> ,"truncate"
> ,"trim"
> ,"trim_array"
> --,"true" > --,"true"
> ,"uescape" > ,"uescape"
> ,"union" > ,"union"
@ -2192,10 +2235,13 @@ means).
> ,"using" > ,"using"
> --,"value" > --,"value"
> ,"values" > ,"values"
> ,"value_of"
> --,"var_pop" > --,"var_pop"
> --,"var_samp" > --,"var_samp"
> ,"varbinary"
> ,"varchar" > ,"varchar"
> ,"varying" > ,"varying"
> ,"versioning"
> ,"when" > ,"when"
> ,"whenever" > ,"whenever"
> ,"where" > ,"where"
@ -2205,10 +2251,10 @@ means).
> ,"within" > ,"within"
> ,"without" > ,"without"
> --,"year" > --,"year"
>
> -- added for this parser > -- added for this parser
> -- todo: remove this when dialects with limit are added
> ,"limit" > ,"limit"
> ,"offset"
> ] > ]
-------------------------------------------- --------------------------------------------