summaryrefslogtreecommitdiff
path: root/tests/test_parse.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow any unicode character as identifier name (fixes #641).Andi Albrecht2022-09-101-0/+1
|
* DIV is OperatorAki Ariga2022-08-081-0/+6
|
* Fix parsing of scientific numbers (fixes #399).Andi Albrecht2021-07-141-4/+10
|
* Don't make parsing of square bracket identifiers too greedy (fixes #583).Andi Albrecht2020-09-301-0/+6
|
* Remove support for end-of-life PythonsJon Dufresne2020-08-311-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 2.7 and 3.4 are end-of-life. They are no longer receiving bug fixes, including for security issues. Python 2.7 went EOL on 2020-01-01 and 3.4 on 2019-03-18. For additional details on support Python versions, see: Supported: https://devguide.python.org/#status-of-python-branches EOL: https://devguide.python.org/devcycle/#end-of-life-branches Removing support for EOL Pythons will reduce testing and maintenance resources while allowing the library to move towards modern Python 3. Using pypinfo, we can show the PyPI download statistics, showing less than 10% of users are using Python 2.7. | python_version | percent | download_count | | -------------- | ------: | -------------: | | 3.7 | 45.36% | 3,056,010 | | 3.6 | 26.46% | 1,782,778 | | 3.8 | 12.22% | 823,213 | | 2.7 | 9.97% | 671,459 | | 3.5 | 5.86% | 394,846 | | 3.4 | 0.10% | 6,700 | | 3.9 | 0.03% | 2,346 | | 2.6 | 0.00% | 57 | | 3.3 | 0.00% | 21 | | 3.10 | 0.00% | 6 | | Total | | 6,737,436 | Library users who continue to use Python 2.7 will still be able to install previous versions of sqlparse. Compatibility shims have been dropped, simplifying the code. Using pyupgrade, the codebase has been updated to take advantage of modern syntax <https://github.com/asottile/pyupgrade>. The wheel is no longer marked as "universal" as it is now Python 3 only.
* Restrict detection of alias names (fixes #455).Andreas Albrecht2019-10-091-2/+2
| | | | | This change adopts some parts of the pull request #509 by john-bodley. Thanks!
* 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-031-0/+21
|
* Fix issue with get_real_name returning incorrect nameFredy Wijaya2018-03-211-0/+9
|
* Fix typostypoVictor Uriarte2017-11-291-2/+2
|
* Recognize MySQL table names starting with digits (fixes #337).Andi Albrecht2017-05-251-2/+5
|
* 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.
* Parse double dollars (PostgreSQL) as literal strings (fixes #277).Andi Albrecht2016-08-131-0/+19
|
* Parametrize testsVictor Uriarte2016-06-201-40/+17
| | | | | | 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-205/+212
|
* Replace other UnitTest with Py.TestVictor Uriarte2016-06-201-106/+109
|
* Replace ndiffAssertEqual with Py.TestVictor Uriarte2016-06-201-2/+1
|
* Fix token-parent behaviorVictor Uriarte2016-06-121-0/+8
| | | | Closes issue #226
* Restyle pprint_tree and align upto idx=99Victor Uriarte2016-06-121-13/+58
|
* Test for wildcards vs multiplication tokensVictor Uriarte2016-06-111-0/+11
|
* Improve test by splitting multiple assertsVictor Uriarte2016-06-111-10/+10
|
* Add pprint_testVictor Uriarte2016-06-111-1/+20
|
* Fix get_token_at_offset behavior at edgeVictor Uriarte2016-06-111-0/+12
| | | | | At position 6 (with an index starting at 0) it should have been on 2nd word for the example sql='select * from dual'
* Code cleanup in tests.Andi Albrecht2015-10-261-1/+1
|
* Use compat module for single Python 2/3 code base.Andi Albrecht2015-10-261-5/+5
| | | | This change includes minor fixes and code cleanup too.
* Recognize MSSQL temp tables and distinguish from MySQL comments (fixes #192).Andi Albrecht2015-07-261-0/+10
|
* 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
|
* (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
|
* Fix a regression for identifiers with square bracktes notation (fixes #153).Andi Albrecht2014-12-011-0/+7
|
* 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 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 incorrect parsing of string literals with line breaks (fixes #118).Andi Albrecht2013-11-061-0/+6
|
* Fix tagging of identifiers by not taking single quoted strings into account ↵Andi Albrecht2013-09-281-0/+12
| | | | (fixes #111).
* Parse scientific numbers as floats (fixes #107).Andi Albrecht2013-08-261-0/+7
|
* Improve parsing of PEP249-style placeholder (fixes #103).Andi Albrecht2013-06-291-0/+11
|
* Update authors and changelog.Andi Albrecht2013-05-101-1/+1
|
* Added test for Function.get_parameters().wayne.wuw2013-05-091-0/+5
|
* Fix parsing error with dollar-quoted procedure bodies (fixes issue83).Andi Albrecht2012-12-221-0/+21
|
* PEP8'ified to code a bit.Andi Albrecht2012-11-121-1/+1
|
* Improve handling of quoted indentifiers (fixes issue78).Andi Albrecht2012-11-031-0/+7
|
* Make keyword detection more restrict (fixes issue47).Andi Albrecht2011-09-291-0/+4
| | | | | Keywords most likely don't follow dots. Maybe there are other exclusions too, but for now let's just go with this one.
* Add parsing of MS Access column names with braces (fixes issue27).Andi Albrecht2011-07-291-0/+7
|
* Detection of placeholders in paramterized queries (fixes issue22).Andi Albrecht2011-07-251-0/+20
|
* Improve float parsing (thanks, Kris).Andi Albrecht2011-01-261-0/+14
|
* Query token ancestry.Andi Albrecht2009-07-121-0/+24
|