From c35ea6e08b5ebcb3d7c4e88a7be6f89e34d55f05 Mon Sep 17 00:00:00 2001 From: Jake Wheat Date: Sun, 9 Aug 2015 20:13:11 +0300 Subject: [PATCH] small fixes and update changelog --- Language/SQL/SimpleSQL/Parser.lhs | 2 +- Language/SQL/SimpleSQL/Syntax.lhs | 4 ++-- changelog | 16 +++++++++------- website/index.asciidoc | 1 + 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/Language/SQL/SimpleSQL/Parser.lhs b/Language/SQL/SimpleSQL/Parser.lhs index 4a7e644..7908b54 100644 --- a/Language/SQL/SimpleSQL/Parser.lhs +++ b/Language/SQL/SimpleSQL/Parser.lhs @@ -1773,7 +1773,7 @@ slightly hacky parser for signed integers ----------------------------- -= access control += transaction management > startTransaction :: Parser Statement > startTransaction = StartTransaction <$ keywords_ ["start","transaction"] diff --git a/Language/SQL/SimpleSQL/Syntax.lhs b/Language/SQL/SimpleSQL/Syntax.lhs index a551445..49512be 100644 --- a/Language/SQL/SimpleSQL/Syntax.lhs +++ b/Language/SQL/SimpleSQL/Syntax.lhs @@ -190,7 +190,7 @@ > | QName String > | UQName String > | DQName String String String -> -- ^ dialect quoted name, the fields are start quote, end quote and the string itself, e.g. `something` is parsed to DQName "`" "`" "something, and $a$ test $a$ is parsed to DQName "$a$" "$a" " test " +> -- ^ dialect quoted name, the fields are start quote, end quote and the string itself, e.g. `something` is parsed to DQName "`" "`" "something, and $a$ test $a$ is parsed to DQName "$a$" "$a$" " test " > deriving (Eq,Show,Read,Data,Typeable) > -- | Represents a type name, used in casts. @@ -419,7 +419,7 @@ I'm not sure if this is valid syntax or not. > -- probably won't do character sets, collations > -- and translations because I think they are too far from > -- reality -> {- | CreateCharacterSet +> {- | CreateCharacterSet > | DropCharacterSet > | CreateCollation > | DropCollation diff --git a/changelog b/changelog index d1c3169..b5c64b8 100644 --- a/changelog +++ b/changelog @@ -1,15 +1,17 @@ -If you need help updating to a new version of simple-sql-parser, -please email jakewheatmail@gmail.com or use the github bug tracker, -https://github.com/JakeWheat/simple-sql-parser/issues. - - 0.5.0 (not released yet, updated to commit dfa84072dce3ac0fb908ede3f5addbbf4c076d79) +0.5.0 (not released yet, updated to commit 322b6f200d694bff78f6a4a011d7e89d85293731) add a separate lexer to simplify code and speed up parsing replace SqlIndent with new tool, SimpleSqlParserTool (amazing name) which can indent, and parse and lex. experiments in new approach to dealing with fixities with separate pass after parsing - add support for insert, update, delete and truncate - add limited support for create schema, plus drop schema + dml :add support for insert, update, delete and truncate + ddl: add limited support for create schema, plus drop schema + create, alter and drop table with defaults and constraints + create, alter and drop for domain, view, sequence + limited support for transaction management: start transation, + rollback, commit, savepoint + fix the precendence of operators which was following the weird + postgresql 9.4 and earlier precendences instead of the standard 0.4.1 (commit c156c5c34e91e1f7ef449d2c1ea14e282104fd90) tested with ghc 7.4.2, 7.6.3, 7.8.4,7.10.0.20150123 simple demonstration of how dialects could be handled internally diff --git a/website/index.asciidoc b/website/index.asciidoc index 8efdeed..95586e6 100644 --- a/website/index.asciidoc +++ b/website/index.asciidoc @@ -418,6 +418,7 @@ readable. * Hackage: http://hackage.haskell.org/package/simple-sql-parser * Repository: https://github.com/JakeWheat/simple-sql-parser * Bug tracker: https://github.com/JakeWheat/simple-sql-parser/issues +* Changes: https://github.com/JakeWheat/simple-sql-parser/blob/master/changelog == Contact