summaryrefslogtreecommitdiff
path: root/sqlparse
Commit message (Collapse)AuthorAgeFilesLines
* Switch back to development mode.HEADmasterAndi Albrecht2023-04-181-1/+1
|
* Bump version.Andi Albrecht2023-04-181-1/+1
|
* Remove unnecessary parts in regex for bad escaping.Andi Albrecht2023-04-181-2/+2
| | | | | The regex tried to deal with situations where escaping in the SQL to be parsed was suspicious.
* Cleanup regex for detecting keywords (fixes #709).Andi Albrecht2023-03-201-1/+1
|
* Fix get_type with comments between WITH keywordShikanime Deva2023-01-041-13/+14
|
* change singleton behaviorSimon Heisterkamp2023-01-021-18/+34
|
* additional documentationSimon Heisterkamp2023-01-021-1/+3
|
* flake8Simon Heisterkamp2023-01-021-1/+4
|
* lexer documentationSimon Heisterkamp2023-01-022-86/+83
|
* test for changing the regexSimon Heisterkamp2023-01-021-6/+4
|
* remove type annotations for python 3.5 compatibilitySimon Heisterkamp2023-01-022-12/+2
|
* configurable syntaxSimon Heisterkamp2023-01-022-29/+80
|
* Revert "add regex pattern to identify IN as a Compasion token"Andi Albrecht2022-12-301-1/+1
| | | | | | | | | | | This reverts commit 28c4d4026e1d9389a99d8cd627c96fa360c17fc4. See #694. The expectation is that IN is primarily recognized as a keyword, although it acts as a comparison operator. This also matches the definition of IN in most SQL syntax references where it is listed as a reserved keyword (PostgreSQL: https://www.postgresql.org/docs/current/sql-keywords-appendix.html, MySQL: https://dev.mysql.com/doc/refman/8.0/en/keywords.html, for example).
* Switch back to development mode.Andi Albrecht2022-09-231-1/+1
|
* Bump version.0.4.3Andi Albrecht2022-09-231-1/+1
|
* Allow any unicode character as identifier name (fixes #641).Andi Albrecht2022-09-101-1/+1
|
* Add docstring and comments.Andi Albrecht2022-09-061-1/+8
|
* add backtick to remove_quotes character listLong Le Xich2022-08-241-1/+1
|
* Fixed bad parsing of create table statements that use lower caseSimon Heisterkamp2022-08-241-2/+2
|
* CREATE TABLE tbl AS SELECT should return get_alias() for its columnAki Ariga2022-08-241-1/+4
|
* Add DISTINCTROW keyword (fixes #677).Andi Albrecht2022-08-241-0/+6
|
* Make tzcast grouping function less eagerErik Cederstrand2022-08-161-2/+9
|
* Add regex pattern to identify REGEXP as a Compasion tokenJavierPan2022-08-081-0/+1
|
* Refactor to reduce redundant code.Daniel Harding2022-08-081-10/+7
|
* Don't make slice copies in TokenList._token_matching().Daniel Harding2022-08-081-1/+4
| | | | | | | | | | | | | | Since we are working with indexes anyway, don't bother calling enumerate() with a slice from self.tokens (which requires copying memory). Instead, just generate the indexes using range() and use normal indexing to access the desired tokens. The old behavior resulted in quadratic runtime with respect to the number of tokens, which significantly impacted performance for statements with very large numbers of tokens. With the new behavior, the runtime is now linear with respect to the number of tokens.
* added some builtin types that can appear in Spark create table statements.Simon Heisterkamp2022-08-081-0/+4
|
* DIV is OperatorAki Ariga2022-08-081-0/+1
|
* Fix INDICATOR keywordosmnv2022-08-071-1/+1
|
* Switch back to development mode.Andi Albrecht2021-09-101-1/+1
|
* Update Changelog and bump version.Andi Albrecht2021-09-101-1/+1
|
* Optimize regular expression for identifying line breaks in comments.Andi Albrecht2021-09-101-1/+4
|
* Fix parsing of scientific numbers (fixes #399).Andi Albrecht2021-07-141-1/+1
|
* keyword, add ON_ERROR_STOPJean-Martin Archer2020-12-121-0/+1
|
* keyword, add CONFLICT to postgres keywordsJean-Martin Archer2020-12-121-0/+1
| | | | As in ON CONFLICT
* Add ELSIF as keyword (fixes #584).Andi Albrecht2020-10-191-0/+1
|
* Fix parsing of backticks (fixes #588).Andi Albrecht2020-10-191-1/+1
| | | | | The backticks in this operator regex was introduced in c794c97531c09e66b6a7ffac76626a727ad02f5e. Pretty sure it was by mistake.
* Switch back to development mode.Andi Albrecht2020-10-081-1/+1
|
* Bump version.0.4.1Andi Albrecht2020-10-081-1/+1
|
* Remove debug print statement (fixes #586).Andi Albrecht2020-10-081-2/+0
|
* Switch back to development mode.Andi Albrecht2020-10-071-1/+1
|
* Bump version to 0.4.0.0.4.0Andi Albrecht2020-10-071-1/+1
|
* Update copyright notice.Andi Albrecht2020-10-0721-21/+21
|
* Stabilize formatting of invalid WHERE clauses.Andi Albrecht2020-09-301-0/+3
|
* Improve formatting of type casts in parentheses.Andi Albrecht2020-09-301-0/+2
|
* Fix an issue with negative indexes causing IndexError in some cases.Andi Albrecht2020-09-301-0/+2
|
* Fix splitting of statements using CASE ... WHEN (fixes #580).Andi Albrecht2020-09-301-1/+1
|
* Fix splitting when using DECLARE ... HANDLER (fixes #581).Andi Albrecht2020-09-301-1/+1
|
* Don't make parsing of square bracket identifiers too greedy (fixes #583).Andi Albrecht2020-09-301-1/+1
|
* Add RLIKE keywordWill Jones2020-09-301-1/+1
|
* Add postgres WINDOW keywordali-tny2020-09-301-0/+1
| | | | | | | | | | | | | | | 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'>.