summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* [grouping] group_as() no longer groups AS CTELikai Liu2020-02-021-0/+8
| | | | | | | | | | | | | | | | | This patch changes the grouping of AS so that: Foo AS WITH bar AS 1 SELECT 2 with no longer be grouped as: [Identifier[Foo, AS, WITH, Identifier[Bar AS 1]], SELECT, 2] but will be grouped as: [Identifier[Foo], AS, WITH, Identifier[Bar AS 1], SELECT, 2] This fixes the parsing of CREATE TABLE new_table AS WITH ... so the rest of the tokens after AS are parsed the same as a bare WITH.
* [fix] Fixing typed literal regressionJohn Bodley2020-02-021-0/+6
|
* Fix testCorey Zumar2020-01-161-14/+14
|
* Like/ilike comparison testCorey Zumar2020-01-161-0/+35
|
* Add symbols back to comparison testCorey Zumar2020-01-162-1/+2
|
* More test casesCorey Zumar2020-01-162-1/+22
|
* Add first test caseCorey Zumar2020-01-161-2/+3
|
* support typed literals (if that's what they're called)Dvořák Václav2019-10-201-0/+28
|
* [fix] Addressing issue #507John Bodley2019-10-091-0/+8
|
* Restrict detection of alias names (fixes #455).Andreas Albrecht2019-10-092-5/+6
| | | | | This change adopts some parts of the pull request #509 by john-bodley. Thanks!
* Revert "Add in slash comment functionality"Toby Mao2019-06-262-21/+0
| | | | This reverts commit 170010e7d709f2145169d23482d006dc56856256.
* Add support for time zone casts (fixes #489).Andi Albrecht2019-05-162-0/+15
|
* Identitfy NULLS FIRST/LAST as keywords (fixes #487).Andi Albrecht2019-05-011-0/+7
|
* Update changelog and authors and add regression test for #485.Andi Albrecht2019-04-171-0/+10
|
* Add regression test for #484.Andi Albrecht2019-03-301-0/+17
|
* Avoid formatting of psql commands (fixes #469).Andi Albrecht2019-03-112-0/+13
|
* [tokenizer] Grouping GROUP/ORDER BYJohn Bodley2019-03-102-1/+13
|
* Add in slash comment functionalityIan Robertson2019-03-102-0/+21
|
* [filters] Stripping parenthesis whitespaceJohn Bodley2019-03-101-3/+3
|
* Fix formatting on INSERT (fixes #329)Fredy Wijaya2019-03-102-4/+50
| | | | | | | | | | | | | | | | | | | | This patch fixes the formatting on INSERT by creating a new instance of sql.Values to group all the values. SQL: insert into foo values (1, 'foo'), (2, 'bar'), (3, 'baz') Before: insert into foo values (1, 'foo'), (2, 'bar'), (3, 'baz') After: insert into foo values (1, 'foo'), (2, 'bar'), (3, 'baz')
* Merge branch 'issue_425' of https://github.com/fredyw/sqlparse into ↵Andreas Albrecht2019-03-101-0/+13
|\ | | | | | | fredyw-issue_425
| * Fix issue with strip_comments causing a syntax error (fixes #425)Fredy Wijaya2018-11-211-0/+13
| |
* | Code cleanup.Andreas Albrecht2019-03-101-2/+2
| |
* | Revamped pprint_treeMrVallentin2019-01-071-53/+53
| |
* | Fix from( parsing issue (fixes #446)Fredy Wijaya2018-12-031-0/+18
| |
* | Fix reindent issue for parenthesis (fixes issue 427)Fredy Wijaya2018-12-032-0/+26
|/
* Correct spelling (#407)Josh Soref2018-05-182-5/+5
| | | | | | | | | | | | | | | | * spelling: choice * spelling: duplicate * spelling: identifier * spelling: issue * spelling: parenthesis * spelling: split * spelling: statements
* Use https:// for URLs where availableJon Dufresne2018-04-131-4/+4
|
* Deal with long function paramsSoloman Weng2018-03-261-0/+12
|
* Fix issue with get_real_name returning incorrect nameFredy Wijaya2018-03-211-0/+9
|
* Fix incorrect splitting with double quotes and a new lineFredy Wijaya2018-03-091-0/+10
|
* Fix typostypoVictor Uriarte2017-11-294-6/+6
|
* Merge pull request #364 from jdufresne/flake8Andi Albrecht2017-11-211-2/+2
|\ | | | | Fix flake8 warning with newer flake8 version
| * Fix flake8 warning with newer flake8 versionJon Dufresne2017-10-281-2/+2
| | | | | | | | | | Report "ambiguous variable name 'l'", replace with a more descriptive name.
* | Fix unclosed file warnings discovered during testsJon Dufresne2017-10-281-3/+4
|/ | | | | | | | Appear as: ResourceWarning: unclosed file ... Always explicitly close files or detach file wrappers.
* Close files during tests.Andi Albrecht2017-09-242-10/+11
|
* Fix handling of semicolon when grouping assignments (fixes #359).Andi Albrecht2017-09-241-0/+10
| | | | | | When grouping assignments that contain a semicolon itself, the engine was too greedy. Assignments with semicolon were introduced in 691c0400e5a7d8229b7dce09bf47176539add328.
* Merge branch 'master' into masterAndi Albrecht2017-09-212-2/+14
|\
| * Fix parsing of UNION ALL after WHERE (fixes #349).Andi Albrecht2017-07-291-0/+9
| |
| * Recognize MySQL table names starting with digits (fixes #337).Andi Albrecht2017-05-251-2/+5
| |
* | adds '1.' option support for float numbers regexatronah2017-04-301-0/+14
|/
* Re-order parsing so that comparisons are seens as identifiers (fixes #327).Andi Albrecht2017-04-181-0/+14
|
* Fix parsing of INTO keyword in WHERE clauses (fixes #324).Andi Albrecht2017-03-021-0/+8
|
* Fix line lengthRowan Seymour2017-02-091-1/+2
|
* CONCURRENTLY should be handled as a keywordRowan Seymour2017-02-091-0/+12
|
* Update test with new behaviorVictor Uriarte2017-02-071-2/+3
|
* Add another CLI encoding testVictor Uriarte2017-01-221-0/+8
| | | | This one I couldn't get to pass on my attempt
* CLI: Add --encoding optionTao Wang2017-01-123-0/+66
| | | | | | | | * Add `--encoding` option with default utf-8 * Make sure input and output are in same encoding * Add test cases Signed-off-by: Tao Wang <twang2218@gmail.com>
* Fix #315 support utf-8 by defaultTao Wang2017-01-111-0/+19
| | | | Signed-off-by: Tao Wang <twang2218@gmail.com>
* Fix an edge-case with subselects in CASE clauses.Andi Albrecht2016-10-241-0/+10
|