summaryrefslogtreecommitdiff
path: root/tests/test_grouping.py
Commit message (Collapse)AuthorAgeFilesLines
* Returning clause ends where clauseDarik Gamble2016-06-251-0/+8
|
* Parametrize testsVictor Uriarte2016-06-201-13/+5
| | | | | | Allows for tests to continue if the first assert had failed. In particular useful when certain change is dealing with two almost opposing edge cases.
* Remove some test classes and clean-upVictor Uriarte2016-06-201-277/+310
|
* Replace other UnitTest with Py.TestVictor Uriarte2016-06-201-115/+114
|
* Replace ndiffAssertEqual with Py.TestVictor Uriarte2016-06-201-18/+16
|
* Previous fix for period failed when another token (non-groupable) followed.Victor Uriarte2016-06-191-0/+9
|
* Revert behavior of dangling period(hanging schema qualifier)Victor Uriarte2016-06-181-3/+3
| | | | | | Related to #261. Reverting to previous behavior until a way to handle behavior/grouping of invalid sql is agreed upon.
* Rename token_idx_ funcs to simply token_ funcsVictor Uriarte2016-06-151-2/+2
|
* Change token_ funcs to token_idx funcsVictor Uriarte2016-06-151-3/+3
|
* Add sql.Operation tokenlistVictor Uriarte2016-06-121-8/+9
|
* Apply new-style str formatVictor Uriarte2016-06-111-1/+1
|
* Format `pr` to pass flake8 and update functions usedVictor Uriarte2016-06-061-5/+7
|
* Add filter `Spaces around Operators`Adam Greenhall2016-06-061-0/+4
|
* Test: Subquery Ident-lists grouping alias bugAdam Greenhall2016-06-061-0/+10
| | | | Not being grouped correctly when aliased
* Fix test that wasn't evaluatingVictor Uriarte2016-06-041-3/+3
| | | | | | | AssertTrue wasn't comparing the value, just checking if value was not False Fix and changed AssertTrue to Assert_ to match style used else throught tests
* Merge pull request #236 from koljonen/using_directly_followed_by_parenthesisAndi Albrecht2016-05-281-0/+7
|\ | | | | Recognize USING as a keyword in 'USING(', not just in 'USING ('
| * Recognize USING as a keyword in 'USING(', not just in 'USING ('koljonen2016-05-141-0/+7
| | | | | | | | These were previously caught by (r'[^\W\d_]\w*(?=[.(])', tokens.Name), so I added a special regex just above that one.
* | separate identifier grouping into its componentsVictor Uriarte2016-05-101-3/+3
|/ | | | | leaving sql.Operations in for future PR small behavior changed for invalid identifier
* Improve identifier parsing when identifier is a literal combined with order ↵Andi Albrecht2016-04-061-0/+6
| | | | keyword (fixes #101).
* Code cleanupAndi Albrecht2016-04-061-3/+4
|
* Fix #230 (function comparison grouping)saaj2016-04-051-0/+23
|
* Code cleanup in tests.Andi Albrecht2015-10-261-2/+4
|
* Use compat module for single Python 2/3 code base.Andi Albrecht2015-10-261-12/+13
| | | | This change includes minor fixes and code cleanup too.
* Improve detection of aliased identifiers (fixes #185).Andi Albrecht2015-04-191-0/+5
|
* Never interpret IN keyword as function name (fixes #183).Andi Albrecht2015-04-121-1/+7
|
* Add a bunch of extra tests for assigning aliases without the AS keywordDarik Gamble2015-02-091-0/+40
|
* Fix testDarik Gamble2015-02-091-1/+1
| | | | | Previously, in this test, "(select y from foo where bar = 1) z" was parsed as <Parens><Whitespace><Name z>. It is now parsing as <Identifier alias z>, so change the nested token indexing to match
* Fix testDarik Gamble2015-02-091-4/+5
| | | | | | | In this test, "(y2) bar" was previously parsed as <Parens "y2"><whitespace><Name bar>, Similarly (x3) x2 was <Parens><whitespace><Name x2>, now <Identifier alias x2>. Change the number of top level tokens and nested token indexing to match.
* Improve parsing of inline comments for identifiers (fixes #163).Andi Albrecht2015-01-161-0/+6
|
* Better handling of floats in UPDATE statements (issue145).Andi Albrecht2014-11-301-0/+9
|
* Handle single quoted strings in comparisons correctly (fixes issue148).Andi Albrecht2014-10-291-0/+8
|
* Improve parsing of string literals in columns.Andi Albrecht2014-01-101-0/+6
|
* Support for BEGIN/END blocks, add FOREACH keyword.Andi Albrecht2013-11-191-0/+39
|
* Improve grouping of expressions (targets #23).Andi Albrecht2013-10-241-2/+11
|
* Fix tagging of identifiers by not taking single quoted strings into account ↵Andi Albrecht2013-09-281-4/+7
| | | | (fixes #111).
* Parenthesis, Functions and Arithmetic Expressionsprudhvi2013-09-131-0/+9
| | | are valid types to group an identifier
* Allow NULL keyword in assignments (fixes #90).Andi Albrecht2013-04-201-0/+14
|
* Add order criterion to identifier in ORDER BY clause (fixes #89).Andi Albrecht2013-04-051-0/+11
|
* Handle whitepaces between operators correctly, improve handling of ↵Andi Albrecht2012-11-111-1/+25
| | | | concatenated strings (issue53).
* Special case grouping logic for VARCHAR, otherwise it gets lost from field ↵Mike Amy2012-11-071-0/+4
| | | | definitions.
* VALUES was incorrectly treated as a functionquest2012-04-221-0/+6
|
* Changed get_identifiers() to be a generatorJesús Leganés Combarro "Piranna"2012-02-031-1/+1
|
* Change all internal use of to_unicode() to __unicode__() and marked former ↵Jesús Leganés Combarro "Piranna"2012-02-031-12/+12
| | | | one as deprecated.
* Detect alias for CASE statements (targets issue46).Andi Albrecht2011-09-291-0/+5
|
* Detect function aliases better.Andi Albrecht2011-07-241-0/+4
|
* Group extended identifiers (fixes issue15).Andi Albrecht2010-11-211-0/+8
|
* Fix typo: Comparsion -> Comparison.Andi Albrecht2010-07-041-4/+4
|
* Clean up imports.Andi Albrecht2010-07-041-32/+32
| | | | | Removed wildcard imports, mainly to keep pyflakes quiet. But this change lifted some wrong imports and class usage.
* Fix an issue with trailing whitespaces (reported by Kris).Andi Albrecht2010-02-181-0/+4
|
* Prevent WHERE grouper from consuming closing parenthesis (fixes issue9, ↵Andi Albrecht2009-09-121-1/+1
| | | | reported by estama).