summaryrefslogtreecommitdiff
path: root/tests/test_parse.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Turn relative import in tests module to absolute imports.Andi Albrecht2009-04-301-1/+1
|
* Initial import.Andi Albrecht2009-04-031-0/+39