1
Fork 0

fix regression in extract function parsing, some small tweaks

This commit is contained in:
Jake Wheat 2019-08-31 18:12:35 +01:00
parent 7e38efc0bf
commit 9f2ff37c54
5 changed files with 8 additions and 12 deletions

View file

@ -182,7 +182,7 @@ windows, etc.)
> ,"cursor" -- keyword > ,"cursor" -- keyword
> ,"cycle" --keyword > ,"cycle" --keyword
> ,"date" -- type > ,"date" -- type
> ,"day" -- keyword? > --,"day" -- keyword? - the parser needs it to not be a keyword to parse extract at the moment
> ,"deallocate" -- keyword > ,"deallocate" -- keyword
> ,"dec" -- type > ,"dec" -- type
> ,"decimal" -- type > ,"decimal" -- type
@ -237,7 +237,7 @@ windows, etc.)
> ,"groups" > ,"groups"
> ,"having" > ,"having"
> ,"hold" > ,"hold"
> ,"hour" > --,"hour"
> ,"identity" > ,"identity"
> ,"in" > ,"in"
> ,"indicator" > ,"indicator"

View file

@ -10,7 +10,7 @@ build :
.PHONY : test .PHONY : test
test : test :
cabal new-run test:Tests -- --hide-successes --ansi-tricks=false cabal v2-run test:Tests -- --hide-successes --ansi-tricks=false
.PHONY : website .PHONY : website
website : website :

3
TODO
View file

@ -4,6 +4,7 @@ review alters, and think about adding rename versions
which are really common and useful, but not in ansi which are really common and useful, but not in ansi
https://github.com/JakeWheat/simple-sql-parser/issues/20 https://github.com/JakeWheat/simple-sql-parser/issues/20
finish off going through the keyword list
do more examples do more examples
what are the use cases? what are the use cases?
@ -33,8 +34,6 @@ themselves
review main missing sql bits - focus on more mainstream things review main missing sql bits - focus on more mainstream things
could also review main dialects could also review main dialects
review the dialect support implementation
syntax from hssqlppp: syntax from hssqlppp:
query hints, join hints query hints, join hints

View file

@ -1,6 +1,6 @@
0.6.0 0.6.0
checked - works with ghc 8.8.1 - but because of pretty-show, checked with ghc 8.8.1 - but because of pretty-show, the
the executable doesn't work with this ghc yet executable doesn't work with this ghc yet
change the dialect handling - now a dialect is a bunch of flags change the dialect handling - now a dialect is a bunch of flags
plus a keyword list, and custom dialects are now feasible plus a keyword list, and custom dialects are now feasible
(still incomplete) (still incomplete)

View file

@ -13,7 +13,7 @@ formats output nicely. Current target is to parse most SQL:2011
queries, plus a good subset of DDL, non-query DML, transaction queries, plus a good subset of DDL, non-query DML, transaction
management, access control and session management. management, access control and session management.
This is the documentation for version 0.5.0. Documentation for other This is the documentation for version 0.6.0. Documentation for other
versions is available here: versions is available here:
http://jakewheat.github.io/simple-sql-parser/. http://jakewheat.github.io/simple-sql-parser/.
@ -22,9 +22,6 @@ probably not very stable, since adding support for all the
not-yet-supported ANSI SQL syntax, then other dialects of SQL is not-yet-supported ANSI SQL syntax, then other dialects of SQL is
likely to change the abstract syntax types considerably. likely to change the abstract syntax types considerably.
Release 0.5.0 is a checkpoint release since there hasn't been a
release for a while.
Tested with GHC 8.8.1, 8.6.5, 8.4.4 and 8.2.1. Tested with GHC 8.8.1, 8.6.5, 8.4.4 and 8.2.1.
== Links == Links
@ -375,7 +372,7 @@ with --ansi-tricks=false so it works is a good option to use:
---- ----
cabal new-run test:Tests -- --hide-successes --ansi-tricks=false cabal v2-run test:Tests -- --hide-successes --ansi-tricks=false
---- ----
== Reporting bugs == Reporting bugs