Nickolay Ponomarev
a1da7b4005
Reduce differences between "generic" and "postgresql" tests
...
Mainly by replacing `assert_eq!(sql, ast.to_string())` with a call to
the recently introduced `verified()` helper or using `parses_to()` where
the expected serialization differs from the original SQL string.
There was one case (parse_implicit_join), where the inputs were different:
let sql = "SELECT * FROM t1,t2";
//vs
let sql = "SELECT * FROM t1, t2";
and since we don't test the whitespace handling in other tests, I just
used the canonical representation as input.
2019-01-20 19:14:53 +03:00
Andy Grove
777fd4c2ee
Merge branch 'master' into not
2019-01-12 11:14:07 -07:00
Andy Grove
7aab880387
implement NOT
2018-12-16 14:03:03 -07:00
Andy Grove
e863bc041c
cargo fmt, fix compiler warnings
2018-12-16 13:57:01 -07:00
Fredrik Roos
72024661a9
More tests and some small bugfixes
2018-11-18 00:53:39 +01:00
Fredrik Roos
7624095738
Support for joins
2018-11-17 15:40:24 +01:00
virattara
9898e99eb2
unit tests for select, delete statements ending with semi colon
2018-10-17 15:54:49 +05:30
Andy Grove
70a3ae93c8
Merge pull request #25 from nickolay/master
...
Support "searched" CASE expressions
2018-10-16 20:03:34 -06:00
Andy Grove
7e152cd0a9
revert one timestamp parsing case
2018-10-14 12:26:47 -06:00
Nickolay Ponomarev
5a396bb9b4
Support "searched" CASE expressions ( #15 )
...
https://jakewheat.github.io/sql-overview/sql-2011-foundation-grammar.html#searched-case
2018-10-14 20:45:32 +03:00
Andy Grove
633aeb9162
Merge pull request #26 from virattara/fix_order_limit
...
fix for queries with both order by and limit
2018-10-14 10:13:22 -06:00
virattara
9f47e8ac94
fix for queries with both order by and limit
2018-10-12 16:10:00 +05:30
virattara
94df7c22e6
added support for expressions with parentheses
2018-10-07 14:23:05 +05:30
Andy Grove
035ef52696
re-instate tests for generic parser
2018-10-06 10:15:10 -06:00