summaryrefslogtreecommitdiff
path: root/sqlparse
Commit message (Collapse)AuthorAgeFilesLines
* Use generator expression to avoid unnecessary temporary listJon Dufresne2017-04-291-2/+2
|
* Merge pull request #328 from phdru/mysql_unlockAndi Albrecht2017-04-191-0/+1
|\ | | | | Add UNLOCK keyword
| * Add UNLOCK keywordOleg Broytman2017-04-141-0/+1
| |
* | Re-order parsing so that comparisons are seens as identifiers (fixes #327).Andi Albrecht2017-04-181-2/+2
|/
* Switch back to development version.Andi Albrecht2017-03-021-1/+1
|
* Bump version.0.2.3Andi Albrecht2017-03-021-1/+1
|
* Fix parsing of INTO keyword in WHERE clauses (fixes #324).Andi Albrecht2017-03-021-1/+1
|
* CONCURRENTLY should be handled as a keywordRowan Seymour2017-02-091-0/+1
|
* Putting LIMIT on a new line #320Romain Rigaux2017-02-041-1/+1
| | | https://github.com/andialbrecht/sqlparse/issues/320
* Don't treat GROUPS as a keyword, it's too common for table names.Andi Albrecht2017-01-241-1/+2
|
* Don't treat STATE as a keyword, it causes too much troubles (fixes #296).Andi Albrecht2017-01-231-1/+1
|
* CLI: Add --encoding optionTao Wang2017-01-121-6/+15
| | | | | | | | * 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 encoding logic/orderVictor Uriarte2017-01-101-5/+6
| | | | | | - If user provides an encoding value, use it instead of trying to _guess_ first. - If no value is provided, then decode with default of utf-8, otherwise try with unicode-escape
* Fix #315 support utf-8 by defaultTao Wang2017-01-111-1/+1
| | | | Signed-off-by: Tao Wang <twang2218@gmail.com>
* Fix _flatten_up_to_token() to be PEP 479 compatibleJon Dufresne2017-01-101-1/+1
| | | | | | | | Fixes warning during tests: PendingDeprecationWarning: generator 'ReindentFilter._flatten_up_to_token' raised StopIteration PEP 479 documentation: https://www.python.org/dev/peps/pep-0479/
* Make reindent more robust regarding max recursion errors.Andi Albrecht2016-10-251-1/+2
|
* Fix an edge-case with subselects in CASE clauses.Andi Albrecht2016-10-241-1/+2
|
* Fix special case for #284 when statement starts with orphaned AS.Andi Albrecht2016-10-241-1/+1
|
* Switch back to development mode.Andi Albrecht2016-10-221-1/+1
|
* Bump version.0.2.2Andi Albrecht2016-10-221-1/+1
|
* Handle operator grouping after identifying typecasts (fixes #297).Andi Albrecht2016-10-011-1/+1
|
* Fix parsing of UNION ALL (fixes #294).Andi Albrecht2016-09-261-0/+1
|
* Revert "Fix test failure on Python 3.6 (fixes #286)."Andi Albrecht2016-09-211-2/+0
| | | | | | | This reverts commit a03e7fd681e275dfd214f1196bad94af225a9d68. This change isn't needed anymore. The actual problem was solved in cpython: https://hg.python.org/cpython/rev/1a2b8398f045/
* Merge pull request #293 from timgraham/flake8Andi Albrecht2016-09-201-1/+1
|\ | | | | Fix flake8 warnings.
| * Fix flake8 warnings.Tim Graham2016-09-201-1/+1
| |
* | Fix test failure on Python 3.6 (fixes #286).Tim Graham2016-09-201-0/+2
|/
* Better formatting when using comma-first notation (issue141).Andi Albrecht2016-09-171-3/+7
|
* Add formatter option for comma first notation (fixes #141).Andi Albrecht2016-09-143-2/+30
|
* Correct license link (fixes #288).Andi Albrecht2016-09-1422-22/+22
|
* Fix parsing of names containing special chars (fixes 291).Andi Albrecht2016-09-141-2/+2
|
* Decode bytes to unicode in Lexer.get_tokens().Oleg Broytman2016-08-312-19/+18
| | | | | | | 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.
* Convert string literals to unicode for Py27Oleg Broytman2016-08-315-13/+14
| | | | | | Working with non-ascii in Python require all-unicode approach, but str literals in Python 2.7 are bytes. The patch makes them unicode. Syntax u'' is supported in Python 2.7 and 3.3+.
* Merge pull request #285 from vmuriart/unify_naming_schemaAndi Albrecht2016-08-247-41/+34
|\ | | | | Unify_naming_schema. Closes #283
| * Unify_naming_schema. Closes #283Victor Uriarte2016-08-227-41/+34
| |
* | Fix #284 as groupingVictor Uriarte2016-08-221-1/+1
|/
* Clean-up quotingVictor Uriarte2016-08-221-8/+4
|
* Merge pull request #282 from vmuriart/alt_277Vik2016-08-132-16/+4
|\ | | | | Alternate solution for #277
| * Alternate solution for #277Victor Uriarte2016-08-131-1/+1
| |
| * Revert "Parse double dollars (PostgreSQL) as literal strings (fixes #277)."Victor Uriarte2016-08-132-16/+4
| | | | | | | | This reverts commit 2893bd1857d685cf892beac3a7429d03cf1a09f1.
* | Remove PostgreSQL builtin from _change_splitlevel.Victor Uriarte2016-08-131-18/+0
|/ | | | No longer needed as internals are now being treated as a string literal
* Back to development mode.Andi Albrecht2016-08-131-1/+1
|
* This is 0.2.1.0.2.1Andi Albrecht2016-08-131-1/+1
|
* Parse double dollars (PostgreSQL) as literal strings (fixes #277).Andi Albrecht2016-08-132-4/+16
|
* Move file_types list to compat module.Andi Albrecht2016-08-102-9/+6
|
* Merge pull request #279 from phdru/issue-190Vik2016-08-051-1/+7
|\ | | | | closes #190
| * Fix a bug: recognize file (Python 2) as a streamOleg Broytman2016-08-061-1/+7
| |
* | Avoid double apostrophesOleg Broytman2016-08-061-2/+11
|/ | | | | | | | 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''.
* Fix parsing of streams (fixes #273).Andi Albrecht2016-07-221-1/+3
|
* Switch back to development version.Andi Albrecht2016-07-201-1/+1
|
* Bump version to 0.2.0.0.2.0Andi Albrecht2016-07-201-1/+1
|