summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* [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
|
* Fix special case for #284 when statement starts with orphaned AS.Andi Albrecht2016-10-241-4/+7
|
* Handle operator grouping after identifying typecasts (fixes #297).Andi Albrecht2016-10-011-0/+14
|
* Parametrize test.Andi Albrecht2016-10-011-10/+9
|
* Fix parsing of UNION ALL (fixes #294).Andi Albrecht2016-09-261-0/+6
|
* Better formatting when using comma-first notation (issue141).Andi Albrecht2016-09-171-4/+4
|
* Add formatter option for comma first notation (fixes #141).Andi Albrecht2016-09-141-0/+15
|
* Fix parsing of names containing special chars (fixes 291).Andi Albrecht2016-09-141-0/+14
|
* Decode bytes to unicode in Lexer.get_tokens().Oleg Broytman2016-08-311-1/+19
| | | | | | | Raise TypeError if the input is neither bytes in a known encoding nor unicode nor a file-like object (file, StringIO). Remove function u(). Add bytes_type to compat. Add tests for non-ascii.
* Merge pull request #285 from vmuriart/unify_naming_schemaAndi Albrecht2016-08-241-1/+1
|\ | | | | Unify_naming_schema. Closes #283
| * Unify_naming_schema. Closes #283Victor Uriarte2016-08-221-1/+1
| |
* | Fix #284 as groupingVictor Uriarte2016-08-221-0/+6
| |
* | Fix test that wasn't runningVictor Uriarte2016-08-221-1/+1
|/
* Parse double dollars (PostgreSQL) as literal strings (fixes #277).Andi Albrecht2016-08-133-1/+33
|
* Don't rely on line breaks in tests.Andi Albrecht2016-08-132-2/+2
|
* Merge pull request #279 from phdru/issue-190Vik2016-08-051-0/+7
|\ | | | | closes #190
| * Fix a bug: recognize file (Python 2) as a streamOleg Broytman2016-08-061-0/+7
| |
* | Avoid double apostrophesOleg Broytman2016-08-061-0/+6
|/ | | | | | | | If the value is Single it's already quoted with apostrophes. Avoid double apostrophes it that case by using double-quotes instead. For example, if the value is 'value' the output is "'value'" instead of ''value''.
* Failing test: stream worked in 0.1.19Gordon McCreight2016-07-213-0/+16
|