| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Allow any unicode character as identifier name (fixes #641). | Andi Albrecht | 2022-09-10 | 1 | -0/+1 |
| | | |||||
| * | Add tests for utils.remove_quotes. | Andi Albrecht | 2022-08-24 | 1 | -0/+12 |
| | | |||||
| * | Fixed bad parsing of create table statements that use lower case | Simon Heisterkamp | 2022-08-24 | 1 | -0/+4 |
| | | |||||
| * | CREATE TABLE tbl AS SELECT should return get_alias() for its column | Aki Ariga | 2022-08-24 | 1 | -0/+5 |
| | | |||||
| * | Make tzcast grouping function less eager | Erik Cederstrand | 2022-08-16 | 1 | -0/+9 |
| | | |||||
| * | DIV is Operator | Aki Ariga | 2022-08-08 | 1 | -0/+6 |
| | | |||||
| * | Optimize regular expression for identifying line breaks in comments. | Andi Albrecht | 2021-09-10 | 1 | -0/+17 |
| | | |||||
| * | Fix parsing of scientific numbers (fixes #399). | Andi Albrecht | 2021-07-14 | 1 | -4/+10 |
| | | |||||
| * | Fix parsing of backticks (fixes #588). | Andi Albrecht | 2020-10-19 | 1 | -0/+7 |
| | | | | | | The backticks in this operator regex was introduced in c794c97531c09e66b6a7ffac76626a727ad02f5e. Pretty sure it was by mistake. | ||||
| * | Stabilize formatting of invalid WHERE clauses. | Andi Albrecht | 2020-09-30 | 1 | -0/+6 |
| | | |||||
| * | Improve formatting of type casts in parentheses. | Andi Albrecht | 2020-09-30 | 1 | -0/+6 |
| | | |||||
| * | Fix splitting of statements using CASE ... WHEN (fixes #580). | Andi Albrecht | 2020-09-30 | 2 | -0/+14 |
| | | |||||
| * | Fix splitting when using DECLARE ... HANDLER (fixes #581). | Andi Albrecht | 2020-09-30 | 2 | -0/+16 |
| | | |||||
| * | Don't make parsing of square bracket identifiers too greedy (fixes #583). | Andi Albrecht | 2020-09-30 | 1 | -0/+6 |
| | | |||||
| * | Add postgres WINDOW keyword | ali-tny | 2020-09-30 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | Postgres allows statements of the form: ```sql SELECT col_1, col_2, SUM(col_3) OVER w FROM x WINDOW w AS (PARTITION BY col_1 ORDER BY col_2) ``` where the window is defined once at the end of the query (see https://www.postgresql.org/docs/9.5/sql-select.html). This change adds WINDOW as a postgres keyword, preventing queries like the above being misparsed, with table name and WINDOW being grouped into an single identifier <Identifier 'x WINDOW'>. | ||||
| * | Preserve line breaks when removing comments (fixes #484). | Andi Albrecht | 2020-09-13 | 1 | -7/+7 |
| | | |||||
| * | Remove changing our stdout encoding. | Andi Albrecht | 2020-09-13 | 1 | -2/+0 |
| | | |||||
| * | Don't flush token streams iff they only contain whitespace tokens (fixes #496). | Andi Albrecht | 2020-09-13 | 2 | -4/+7 |
| | | |||||
| * | add regex pattern to identify IN as a Compasion token | hurcy | 2020-09-13 | 1 | -1/+11 |
| | | |||||
| * | Update tests to work with newer pytest version. | Andi Albrecht | 2020-09-13 | 1 | -47/+28 |
| | | | | | Also some unification of the tests. | ||||
| * | Remove support for end-of-life Pythons | Jon Dufresne | 2020-08-31 | 9 | -65/+43 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
| * | [fix] Adding TypedLiteral to comparison | John Bodley | 2020-03-29 | 1 | -1/+12 |
| | | |||||
| * | [grouping] group_as() no longer groups AS CTE | Likai Liu | 2020-02-02 | 1 | -0/+8 |
| | | | | | | | | | | | | | | | | | | This patch changes the grouping of AS so that: Foo AS WITH bar AS 1 SELECT 2 with no longer be grouped as: [Identifier[Foo, AS, WITH, Identifier[Bar AS 1]], SELECT, 2] but will be grouped as: [Identifier[Foo], AS, WITH, Identifier[Bar AS 1], SELECT, 2] This fixes the parsing of CREATE TABLE new_table AS WITH ... so the rest of the tokens after AS are parsed the same as a bare WITH. | ||||
| * | [fix] Fixing typed literal regression | John Bodley | 2020-02-02 | 1 | -0/+6 |
| | | |||||
| * | Fix test | Corey Zumar | 2020-01-16 | 1 | -14/+14 |
| | | |||||
| * | Like/ilike comparison test | Corey Zumar | 2020-01-16 | 1 | -0/+35 |
| | | |||||
| * | Add symbols back to comparison test | Corey Zumar | 2020-01-16 | 2 | -1/+2 |
| | | |||||
| * | More test cases | Corey Zumar | 2020-01-16 | 2 | -1/+22 |
| | | |||||
| * | Add first test case | Corey Zumar | 2020-01-16 | 1 | -2/+3 |
| | | |||||
| * | support typed literals (if that's what they're called) | Dvořák Václav | 2019-10-20 | 1 | -0/+28 |
| | | |||||
| * | [fix] Addressing issue #507 | John Bodley | 2019-10-09 | 1 | -0/+8 |
| | | |||||
| * | Restrict detection of alias names (fixes #455). | Andreas Albrecht | 2019-10-09 | 2 | -5/+6 |
| | | | | | | This change adopts some parts of the pull request #509 by john-bodley. Thanks! | ||||
| * | Revert "Add in slash comment functionality" | Toby Mao | 2019-06-26 | 2 | -21/+0 |
| | | | | | This reverts commit 170010e7d709f2145169d23482d006dc56856256. | ||||
| * | Add support for time zone casts (fixes #489). | Andi Albrecht | 2019-05-16 | 2 | -0/+15 |
| | | |||||
| * | Identitfy NULLS FIRST/LAST as keywords (fixes #487). | Andi Albrecht | 2019-05-01 | 1 | -0/+7 |
| | | |||||
| * | Update changelog and authors and add regression test for #485. | Andi Albrecht | 2019-04-17 | 1 | -0/+10 |
| | | |||||
| * | Add regression test for #484. | Andi Albrecht | 2019-03-30 | 1 | -0/+17 |
| | | |||||
| * | Avoid formatting of psql commands (fixes #469). | Andi Albrecht | 2019-03-11 | 2 | -0/+13 |
| | | |||||
| * | [tokenizer] Grouping GROUP/ORDER BY | John Bodley | 2019-03-10 | 2 | -1/+13 |
| | | |||||
| * | Add in slash comment functionality | Ian Robertson | 2019-03-10 | 2 | -0/+21 |
| | | |||||
| * | [filters] Stripping parenthesis whitespace | John Bodley | 2019-03-10 | 1 | -3/+3 |
| | | |||||
| * | Fix formatting on INSERT (fixes #329) | Fredy Wijaya | 2019-03-10 | 2 | -4/+50 |
| | | | | | | | | | | | | | | | | | | | | | This patch fixes the formatting on INSERT by creating a new instance of sql.Values to group all the values. SQL: insert into foo values (1, 'foo'), (2, 'bar'), (3, 'baz') Before: insert into foo values (1, 'foo'), (2, 'bar'), (3, 'baz') After: insert into foo values (1, 'foo'), (2, 'bar'), (3, 'baz') | ||||
| * | Merge branch 'issue_425' of https://github.com/fredyw/sqlparse into ↵ | Andreas Albrecht | 2019-03-10 | 1 | -0/+13 |
| |\ | | | | | | | fredyw-issue_425 | ||||
| | * | Fix issue with strip_comments causing a syntax error (fixes #425) | Fredy Wijaya | 2018-11-21 | 1 | -0/+13 |
| | | | |||||
| * | | Code cleanup. | Andreas Albrecht | 2019-03-10 | 1 | -2/+2 |
| | | | |||||
| * | | Revamped pprint_tree | MrVallentin | 2019-01-07 | 1 | -53/+53 |
| | | | |||||
| * | | Fix from( parsing issue (fixes #446) | Fredy Wijaya | 2018-12-03 | 1 | -0/+18 |
| | | | |||||
| * | | Fix reindent issue for parenthesis (fixes issue 427) | Fredy Wijaya | 2018-12-03 | 2 | -0/+26 |
| |/ | |||||
| * | Correct spelling (#407) | Josh Soref | 2018-05-18 | 2 | -5/+5 |
| | | | | | | | | | | | | | | | | | * spelling: choice * spelling: duplicate * spelling: identifier * spelling: issue * spelling: parenthesis * spelling: split * spelling: statements | ||||
| * | Use https:// for URLs where available | Jon Dufresne | 2018-04-13 | 1 | -4/+4 |
| | | |||||
