summaryrefslogtreecommitdiff
path: root/sqlparse/sql.py
Commit message (Collapse)AuthorAgeFilesLines
* Parse square brackets as a group just like parensDarik Gamble2015-03-041-0/+9
| | | | | - add class sql.SquareBrackets - replace group_parenthesis() with more generic group_brackets(), which groups square and round brackets, so each can contain groups of the other
* Move get_parent_name() from Identifer to TokenList (so Function can use it)Darik Gamble2015-02-091-21/+11
|
* get_name() uses _get_first_name()Darik Gamble2015-02-091-0/+4
|
* get_alias() uses _get_first_name(), and searches in reverse for "column ↵Darik Gamble2015-02-091-13/+9
| | | | expression alias"
* TokenList convenience method _get_first_nameDarik Gamble2015-02-091-0/+18
|
* (postgresql) Add support for square bracket array indexing, by darikg.Andi Albrecht2015-02-081-0/+7
| | | | Pull request #170 with trivial conflicts resolved.
* Improve parsing of inline comments for identifiers (fixes #163).Andi Albrecht2015-01-161-0/+3
|
* Fix Function.get_parameters() returning empty list for SQL functions that ↵spigwitmer2014-02-051-3/+3
| | | | have a single nested function as a param
* Fix Function.get_parameters() with 1 literal as its parameterspigwitmer2014-02-041-0/+2
|
* Support for BEGIN/END blocks, add FOREACH keyword.Andi Albrecht2013-11-191-0/+6
|
* Improve grouping of expressions (targets #23).Andi Albrecht2013-10-241-0/+8
|
* Add skip_ws flag to Token.insert_after (fixes #108).Andi Albrecht2013-08-301-2/+2
|
* Fixed Function.get_parameters (issue93).wayne.wuw2013-05-091-0/+2
|
* Add order criterion to identifier in ORDER BY clause (fixes #89).Andi Albrecht2013-04-051-0/+7
|
* Add minimal changes to support Python 2.4.Andi Albrecht2013-02-281-1/+4
| | | | | Fair warning: Support for Python 2.4 may be dropped at any time. But as long as the changes are that minimal and have no significant side-effects we can keep up the compatibility.
* Helper function to return a token at a specific offset.Andi Albrecht2013-01-271-0/+9
|
* Doc updates.Andi Albrecht2013-01-011-1/+2
|
* Python 3 is now fully supported without any patches.Andi Albrecht2012-12-311-4/+22
| | | | | | | | | This change makes the extras/py3k stuff obsolete and installing for Python 3 is as easy as "python3 setup.py install". setup.py uses distribute's use_2to3 flag to automatically run 2to3 when Python 3 is used. \o/ Happy New Year, everyone!
* Remove superfluous cleanup conditions.Andi Albrecht2012-11-121-4/+1
|
* Improve handling of quoted indentifiers (fixes issue78).Andi Albrecht2012-11-031-6/+19
|
* Encode value when reprinting the object.Andi Albrecht2012-08-121-1/+1
|
* Merge branch 'master' into antiormJesús Leganés Combarro "Piranna"2012-05-191-1/+8
| | | | | Conflicts: sqlparse/filters.py
* Removed debug codeJesús Leganés Combarro2012-05-161-1/+0
|
* Some little optimizationsJesús Leganés Combarro "Piranna"2012-04-281-27/+28
|
* various optimizations in sql.pyquest2012-04-221-8/+19
|
* TokenLists.value is equal to their unicode() representation (fixes #30).Andi Albrecht2012-04-191-1/+1
|
* Pretty format comments in identifier lists (fixes issue59).Andi Albrecht2012-04-191-0/+8
|
* Changed get_case() to use a mode stateful variableJesús Leganés Combarro "Piranna"2012-02-031-15/+25
|
* Changed get_identifiers() to be a generatorJesús Leganés Combarro "Piranna"2012-02-031-3/+4
|
* Removed useless default return None (they are by default in Python)Jesús Leganés Combarro "Piranna"2012-02-031-9/+12
|
* Changed get_sublists() to a generatorJesús Leganés Combarro "Piranna"2012-02-031-1/+4
|
* Removed TokenList.__str__() (it was the same that its parent one)Jesús Leganés Combarro "Piranna"2012-02-031-3/+0
|
* Change all internal use of to_unicode() to __unicode__() and marked former ↵Jesús Leganés Combarro "Piranna"2012-02-031-4/+7
| | | | one as deprecated.
* Detect alias for CASE statements (targets issue46).Andi Albrecht2011-09-291-34/+35
|
* Code cleanup.Andi Albrecht2011-09-061-2/+2
|
* Print list index in front of element.Andi Albrecht2011-07-231-3/+4
| | | | This makes it easy to access a token in the token list.
* Enable pretty print function again.Andi Albrecht2011-07-231-13/+12
|
* Don't group trailing whitepsace in WHERE clauses (fixes issue35).Andi Albrecht2011-04-131-3/+8
|
* Ignore case in token.match() for all keyword types (fixes issue34).Andi Albrecht2011-03-171-1/+1
|
* Backed out changeset 489299fc3548Andi Albrecht2010-11-211-2/+8
|
* Include patches from extras/py3k/fixes.diff (fixes issue12).Andi Albrecht2010-11-211-8/+2
|
* Fix typo: Comparsion -> Comparison.Andi Albrecht2010-07-041-3/+3
|
* PEP8: Code cleanup.Andi Albrecht2010-07-041-3/+9
|
* Fix an issue with trailing whitespaces (reported by Kris).Andi Albrecht2010-02-181-1/+5
|
* Improved case detection for CASE structures without WHEN in first case.Andreas Albrecht2009-10-221-2/+8
|
* Prevent WHERE grouper from consuming closing parenthesis (fixes issue9, ↵Andi Albrecht2009-09-121-0/+8
| | | | reported by estama).
* Use utf-8 instead of latin-1 as default encoding.Andi Albrecht2009-09-021-2/+2
|
* Query token ancestry.Andi Albrecht2009-07-121-0/+26
|
* Add parent relationships.Andi Albrecht2009-07-121-1/+5
|
* pep8'ified the code a bit.Andi Albrecht2009-06-111-2/+2
|