From 8e9b9edd0c293b67197e5679e728653477ecafc6 Mon Sep 17 00:00:00 2001 From: Jake Wheat Date: Sun, 7 Jul 2019 13:08:02 +0100 Subject: [PATCH] add window functions to the keyword parser hack so they work, bug #18 --- Language/SQL/SimpleSQL/Parse.lhs | 12 ++++++++++++ TODO | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Language/SQL/SimpleSQL/Parse.lhs b/Language/SQL/SimpleSQL/Parse.lhs index 8639d5c..3540411 100644 --- a/Language/SQL/SimpleSQL/Parse.lhs +++ b/Language/SQL/SimpleSQL/Parse.lhs @@ -791,6 +791,18 @@ all the scalar expressions which start with an identifier > ,"var_pop" > ,"var_samp" > ,"width_bucket" +> -- window functions added here too +> ,"row_number" +> ,"rank" +> ,"dense_rank" +> ,"percent_rank" +> ,"cume_dist" +> ,"ntile" +> ,"lead" +> ,"lag" +> ,"first_value" +> ,"last_value" +> ,"nth_value" > ] diff --git a/TODO b/TODO index 8673cd6..3f4d432 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,4 @@ task right now: get a 0.5.0 release -test with different ghcs fix these two bugs https://github.com/JakeWheat/simple-sql-parser/issues/7 https://github.com/JakeWheat/simple-sql-parser/issues/8 @@ -10,6 +9,7 @@ is this one fixed now? review alters, and think about adding rename versions https://github.com/JakeWheat/simple-sql-parser/issues/20 update changelog +test with different ghcs do release