From 64d3b742b4a36cef1b5862fdfe396f0abb253ff9 Mon Sep 17 00:00:00 2001 From: Jake Wheat Date: Thu, 18 Feb 2016 20:38:59 +0200 Subject: [PATCH] make aggregate function names non keywords --- Language/SQL/SimpleSQL/Parse.lhs | 64 ++++++++++++++++---------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/Language/SQL/SimpleSQL/Parse.lhs b/Language/SQL/SimpleSQL/Parse.lhs index 43df623..40e6f2c 100644 --- a/Language/SQL/SimpleSQL/Parse.lhs +++ b/Language/SQL/SimpleSQL/Parse.lhs @@ -2167,14 +2167,14 @@ not, leave them unreserved for now > reservedWord :: Dialect -> [String] > reservedWord d | diSyntaxFlavour d == ANSI2011 = > ["abs" -> ,"all" +> --,"all" > ,"allocate" > ,"alter" > ,"and" -> ,"any" +> --,"any" > ,"are" > ,"array" -> ,"array_agg" +> --,"array_agg" > ,"array_max_cardinality" > ,"as" > ,"asensitive" @@ -2182,7 +2182,7 @@ not, leave them unreserved for now > ,"at" > ,"atomic" > ,"authorization" -> ,"avg" +> --,"avg" > ,"begin" > ,"begin_frame" > ,"begin_partition" @@ -2210,7 +2210,7 @@ not, leave them unreserved for now > ,"close" > ,"coalesce" > ,"collate" -> ,"collect" +> --,"collect" > ,"column" > ,"commit" > ,"condition" @@ -2218,15 +2218,15 @@ not, leave them unreserved for now > ,"constraint" > ,"contains" > ,"convert" -> ,"corr" +> --,"corr" > ,"corresponding" -> ,"count" -> ,"covar_pop" -> ,"covar_samp" +> --,"count" +> --,"covar_pop" +> --,"covar_samp" > ,"create" > ,"cross" > ,"cube" -> ,"cume_dist" +> --,"cume_dist" > ,"current" > ,"current_catalog" > --,"current_date" @@ -2293,7 +2293,7 @@ not, leave them unreserved for now > ,"global" > ,"grant" > ,"group" -> ,"grouping" +> --,"grouping" > ,"groups" > ,"having" > ,"hold" @@ -2308,7 +2308,7 @@ not, leave them unreserved for now > ,"int" > ,"integer" > ,"intersect" -> ,"intersection" +> --,"intersection" > ,"interval" > ,"into" > ,"is" @@ -2329,7 +2329,7 @@ not, leave them unreserved for now > ,"localtimestamp" > ,"lower" > ,"match" -> ,"max" +> --,"max" > ,"member" > ,"merge" > ,"method" @@ -2372,9 +2372,9 @@ not, leave them unreserved for now > ,"parameter" > ,"partition" > ,"percent" -> ,"percent_rank" -> ,"percentile_cont" -> ,"percentile_disc" +> --,"percent_rank" +> --,"percentile_cont" +> --,"percentile_disc" > ,"period" > ,"portion" > ,"position" @@ -2386,22 +2386,22 @@ not, leave them unreserved for now > ,"primary" > ,"procedure" > ,"range" -> ,"rank" +> --,"rank" > ,"reads" > ,"real" > ,"recursive" > ,"ref" > ,"references" > ,"referencing" -> ,"regr_avgx" -> ,"regr_avgy" -> ,"regr_count" -> ,"regr_intercept" -> ,"regr_r2" -> ,"regr_slope" -> ,"regr_sxx" -> ,"regr_sxy" -> ,"regr_syy" +> --,"regr_avgx" +> --,"regr_avgy" +> --,"regr_count" +> --,"regr_intercept" +> --,"regr_r2" +> --,"regr_slope" +> --,"regr_sxx" +> --,"regr_sxy" +> --,"regr_syy" > ,"release" > ,"result" > ,"return" @@ -2424,7 +2424,7 @@ not, leave them unreserved for now > ,"set" > ,"similar" > ,"smallint" -> ,"some" +> --,"some" > ,"specific" > ,"specifictype" > ,"sql" @@ -2434,13 +2434,13 @@ not, leave them unreserved for now > ,"sqrt" > --,"start" > ,"static" -> ,"stddev_pop" -> ,"stddev_samp" +> --,"stddev_pop" +> --,"stddev_samp" > ,"submultiset" > ,"substring" > ,"substring_regex" > ,"succeeds" -> ,"sum" +> --,"sum" > ,"symmetric" > ,"system" > ,"system_time" @@ -2475,8 +2475,8 @@ not, leave them unreserved for now > --,"value" > ,"values" > ,"value_of" -> ,"var_pop" -> ,"var_samp" +> --,"var_pop" +> --,"var_samp" > ,"varbinary" > ,"varchar" > ,"varying"