summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Add --wrap_after option for wrapping identifier lists.Dennis Taylor2016-06-021-0/+12
| |/
* | Merge pull request #243 from vmuriart/refactor_lexer.pyAndi Albrecht2016-06-031-7/+0
|\ \ | | | | | | Refactor lexer.py
| * | Remove undocumented ws handlers from lexer.pyVictor Uriarte2016-05-291-7/+0
| |/ | | | | | | | | Removing nl before tokenizing breaks comments (stripnl/stripall) Remove tab-expansion.
* | Fix flake8 stylingVictor Uriarte2016-05-292-5/+2
|/
* 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.
* | Another small type in the documentationDag Wieers2016-05-261-1/+1
| |
* | separate identifier grouping into its componentsVictor Uriarte2016-05-101-3/+3
| | | | | | | | | | leaving sql.Operations in for future PR small behavior changed for invalid identifier
* | fix test to run locallyVictor Uriarte2016-05-101-1/+2
|/
* 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
|
* Ensure get_type() works for queries that use WITH.Andrew Tipton2016-03-021-4/+10
|
* Add failing test for issue #227.Andrew Tipton2016-03-021-0/+7
|
* Add test case for issue 214, update changelog and authors.Andi Albrecht2015-12-141-0/+5
|
* Fix version check when casting TokenList to string (fixes #212).Andi Albrecht2015-12-081-0/+11
|
* Code cleanup in tests.Andi Albrecht2015-10-266-36/+38
|
* Fix tab expansion for Python 3.Andi Albrecht2015-10-261-2/+0
|
* Use compat module for single Python 2/3 code base.Andi Albrecht2015-10-267-45/+42
| | | | This change includes minor fixes and code cleanup too.
* Handle END IF correctly when splitting statements (fixes #194).Andi Albrecht2015-07-281-0/+13
|
* Ignore comments at beginning of statement when calling Statement.get_type ↵Andi Albrecht2015-07-261-0/+6
| | | | (fixes #186).
* Recognize MSSQL temp tables and distinguish from MySQL comments (fixes #192).Andi Albrecht2015-07-261-0/+10
|
* Don't treat DECLARE within BEGIN blocks as relevant to split level (fixes #193).Andi Albrecht2015-07-261-1/+12
|
* 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
|
* Support comments starting with '#' character (fixes #178).Andi Albrecht2015-03-161-0/+10
|
* Add a bunch of square bracket testsDarik Gamble2015-03-041-26/+46
|
* Allow identifiers to start with an underscore (fixes #175).Andi Albrecht2015-03-011-0/+9
|
* Recognize escaped backslashes within stringscasey2015-02-261-0/+4
| | | | | Previously if a single quoted string ended with an escaped backslash, parsing would not consider the string to be terminated.
* Merge pull request #171 from darikg/alias_bugfixAndi Albrecht2015-02-211-5/+46
|\ | | | | Fix #167
| * 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.
* | Fix of problem with multiline treated as stackable while /* /* */ is one ↵JacekPliszka2015-02-121-0/+3
|/ | | | comment, not two stacked
* (postgresql) Add support for square bracket array indexing, by darikg.Andi Albrecht2015-02-081-0/+49
| | | | Pull request #170 with trivial conflicts resolved.
* Add double precision as a built-in datatypeDarik Gamble2015-02-061-0/+9
|
* Improve parsing of inline comments for identifiers (fixes #163).Andi Albrecht2015-01-161-0/+6
|
* Improve formatting of HAVING statements.Andi Albrecht2014-12-211-0/+15
|
* Fix a regression for identifiers with square bracktes notation (fixes #153).Andi Albrecht2014-12-011-0/+7
|
* 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
|
* Handle modulo operator without spacesGavin Wahl2014-08-071-0/+4
| | | | | | | `x %3` should be interpreted as a modulo operation, not a parameter marker. Co-authored-by: Rocky Meza <rmeza@fusionbox.com>
* Fix SerializerUnicode to split unquoted newlinesMichael Schuller2014-03-102-1/+25
| | | | | | | This provides a fix to issue #131. The `split_unquoted_newlines()` function added to the utils module handles the splitting of the string by performing a simple iteration of the string passed in and splitting on unquoted CR, LF, or CR+LFs as they are found.
* Improve handling of NULL in aliased identifiers.Andi Albrecht2014-03-031-0/+11
|
* Fix Function.get_parameters() returning empty list for SQL functions that ↵spigwitmer2014-02-051-0/+5
| | | | have a single nested function as a param
* Fix Function.get_parameters() with 1 literal as its parameterspigwitmer2014-02-041-0/+5
|
* Fix parsing and formatting of statements containing EXCEPT keyword.Andi Albrecht2014-01-281-0/+15
|
* 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
|
* Fix incorrect parsing of string literals with line breaks (fixes #118).Andi Albrecht2013-11-061-0/+6
|