Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed bad parsing of create table statements that use lower case | Simon Heisterkamp | 2022-08-24 | 1 | -2/+2 |
| | |||||
* | CREATE TABLE tbl AS SELECT should return get_alias() for its column | Aki Ariga | 2022-08-24 | 1 | -1/+4 |
| | |||||
* | Make tzcast grouping function less eager | Erik Cederstrand | 2022-08-16 | 1 | -2/+9 |
| | |||||
* | Update copyright notice. | Andi Albrecht | 2020-10-07 | 1 | -1/+1 |
| | |||||
* | Fix an issue with negative indexes causing IndexError in some cases. | Andi Albrecht | 2020-09-30 | 1 | -0/+2 |
| | |||||
* | Remove support for end-of-life Pythons | Jon Dufresne | 2020-08-31 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+1 |
| | |||||
* | [grouping] group_as() no longer groups AS CTE | Likai Liu | 2020-02-02 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | 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 | -1/+1 |
| | |||||
* | Stabilize grouping engine when parsing invalid SQL statements. | Andreas Albrecht | 2020-01-06 | 1 | -2/+2 |
| | | | | | It's just to make sure, that the comparison returns a valid result when feed with invalid SQL statements. | ||||
* | Code cleanup. | Andreas Albrecht | 2019-10-20 | 1 | -3/+7 |
| | |||||
* | support typed literals (if that's what they're called) | Dvořák Václav | 2019-10-20 | 1 | -2/+32 |
| | |||||
* | Add support for time zone casts (fixes #489). | Andi Albrecht | 2019-05-16 | 1 | -0/+14 |
| | |||||
* | Fix formatting on INSERT (fixes #329) | Fredy Wijaya | 2019-03-10 | 1 | -0/+13 |
| | | | | | | | | | | | | | | | | | | | | 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') | ||||
* | Code cleanup. | Andreas Albrecht | 2019-03-10 | 1 | -2/+2 |
| | |||||
* | Update copyright header (fixes #372). | Andi Albrecht | 2018-07-31 | 1 | -1/+2 |
| | |||||
* | Fix typostypo | Victor Uriarte | 2017-11-29 | 1 | -3/+3 |
| | |||||
* | Fix handling of semicolon when grouping assignments (fixes #359). | Andi Albrecht | 2017-09-24 | 1 | -1/+1 |
| | | | | | | When grouping assignments that contain a semicolon itself, the engine was too greedy. Assignments with semicolon were introduced in 691c0400e5a7d8229b7dce09bf47176539add328. | ||||
* | Re-order parsing so that comparisons are seens as identifiers (fixes #327). | Andi Albrecht | 2017-04-18 | 1 | -2/+2 |
| | |||||
* | Fix special case for #284 when statement starts with orphaned AS. | Andi Albrecht | 2016-10-24 | 1 | -1/+1 |
| | |||||
* | Handle operator grouping after identifying typecasts (fixes #297). | Andi Albrecht | 2016-10-01 | 1 | -1/+1 |
| | |||||
* | Correct license link (fixes #288). | Andi Albrecht | 2016-09-14 | 1 | -1/+1 |
| | |||||
* | Merge pull request #285 from vmuriart/unify_naming_schema | Andi Albrecht | 2016-08-24 | 1 | -5/+5 |
|\ | | | | | Unify_naming_schema. Closes #283 | ||||
| * | Unify_naming_schema. Closes #283 | Victor Uriarte | 2016-08-22 | 1 | -5/+5 |
| | | |||||
* | | Fix #284 as grouping | Victor Uriarte | 2016-08-22 | 1 | -1/+1 |
|/ | |||||
* | Previous fix for period failed when another token (non-groupable) followed. | Victor Uriarte | 2016-06-19 | 1 | -3/+8 |
| | |||||
* | Revert behavior of dangling period(hanging schema qualifier) | Victor Uriarte | 2016-06-18 | 1 | -2/+2 |
| | | | | | | Related to #261. Reverting to previous behavior until a way to handle behavior/grouping of invalid sql is agreed upon. | ||||
* | Misc. small code clean-up/comments | Victor Uriarte | 2016-06-18 | 1 | -3/+2 |
| | |||||
* | Change group_matching back to idx | Victor Uriarte | 2016-06-15 | 1 | -6/+16 |
| | |||||
* | remove group left_right | Victor Uriarte | 2016-06-15 | 1 | -27/+0 |
| | |||||
* | Change grouping from _left_right to _group | Victor Uriarte | 2016-06-15 | 1 | -18/+71 |
| | |||||
* | remove extra recurse and rename vars | Victor Uriarte | 2016-06-15 | 1 | -30/+43 |
| | | | | | # Conflicts: # sqlparse/engine/grouping.py | ||||
* | Refactor _group's prev token logic | Victor Uriarte | 2016-06-15 | 1 | -13/+11 |
| | |||||
* | Reduce calls by _group to get tk idx | Victor Uriarte | 2016-06-15 | 1 | -4/+15 |
| | |||||
* | Re-Write grouping functions | Victor Uriarte | 2016-06-15 | 1 | -29/+47 |
| | |||||
* | Reorder grouping code and func call order | Victor Uriarte | 2016-06-15 | 1 | -67/+66 |
| | | | | Remove repeated for-each/for grouping | ||||
* | Make use of token_index more obvious | Victor Uriarte | 2016-06-15 | 1 | -4/+6 |
| | |||||
* | Normalize behavior between token_next and token_next_by | Victor Uriarte | 2016-06-15 | 1 | -13/+12 |
| | | | | both will now return the "next" token and not itself when passing own index | ||||
* | Rename token_idx_ funcs to simply token_ funcs | Victor Uriarte | 2016-06-15 | 1 | -50/+50 |
| | |||||
* | Change token_ funcs to token_idx funcs | Victor Uriarte | 2016-06-15 | 1 | -52/+59 |
| | |||||
* | Change argument order to match order of all other functions | Victor Uriarte | 2016-06-14 | 1 | -1/+2 |
| | |||||
* | Refactor _group_matching | Victor Uriarte | 2016-06-14 | 1 | -17/+13 |
| | |||||
* | Apply alt style for grouping left/right | Victor Uriarte | 2016-06-14 | 1 | -7/+9 |
| | |||||
* | Reapply fix for case within paranthesis | Victor Uriarte | 2016-06-14 | 1 | -1/+3 |
| | |||||
* | Merge remote-tracking branch 'core/long_live_indexes' into develop | Victor Uriarte | 2016-06-14 | 1 | -67/+69 |
|\ | |||||
| * | Use a specialized token_idx_next. | Sjoerd Job Postmus | 2016-06-12 | 1 | -4/+4 |
| | | | | | | | | Prevent calling token_index. | ||||
| * | Index-based token_idx_prev | Sjoerd Job Postmus | 2016-06-12 | 1 | -2/+3 |
| | | | | | | | | | | Prevent some more calls to token_index in group_identifier_list. They are now all gone. | ||||
| * | Use specialized token_idx_next_by in group_aliased. | Sjoerd Job Postmus | 2016-06-12 | 1 | -6/+4 |
| | | | | | | | | | | | | | | | | | | | | The method group_aliased was making a lot of calls to token_index. By specializing token_next_by to token_idx_next_by, the calls to token_index became superfluous. Also use token_idx_next_by in group_identifier_list. It was making a lot of calls, which is now more than reduced in half. | ||||
| * | Re-use token index in group_identifier. | Sjoerd Job Postmus | 2016-06-12 | 1 | -8/+13 |
| | | |||||
| * | Replace _group_matching with an inward-out grouping algorithm | Sjoerd Job Postmus | 2016-06-12 | 1 | -8/+20 |
| | | | | | | | | | | | | | | | | | | | | | | All the matching between open/close was done all the time, first finding the matching closing token, and then grouping the tokens in between, and recurse over the newly created list. Instead, it is more efficient to look for the previous open-token on finding a closing-token, group these two together, and then continue on. squashed: Handle token indices in group_tokens_between and find_matching. |