Nickolay Ponomarev
f21cd697c3
Simplify custom datatypes handling and add a test
...
1) Simplified the bit in parse_datatype()
2) Made sure it was covered by the test (the "public.year" bit)
2a) ...the rest of changes in the test are to fix incorrect variable
names: c_name/c_lat/c_lng were copy-pasted from a previous test.
3) Removed the branch from parse_pg_cast, which duplicated what
parse_data_type already handled (added in the same commit even
2007995938
)
2019-01-11 02:37:36 +03:00
Andy Grove
e863bc041c
cargo fmt, fix compiler warnings
2018-12-16 13:57:01 -07:00
Clemens Winter
91aa985ed0
Add LIKE operator
2018-12-16 11:26:09 -08: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
335607f6bb
Add placeholder unit test for ANSI parser
2018-10-06 10:37:49 -06:00
Andy Grove
035ef52696
re-instate tests for generic parser
2018-10-06 10:15:10 -06:00
Andy Grove
4b6967ccd6
remove unused variables
2018-10-06 09:40:30 -06:00
Andy Grove
722ea7a91b
ran cargo fmt
2018-10-06 09:39:26 -06:00
Andy Grove
9daba3ab49
move tests to tests dir
2018-10-06 09:39:06 -06:00