00f141a556Accepting request 1194657 from devel:languages:python
factory
Ana Guerrero
2024-08-20 14:12:48 +0000
d650f16849- update to 0.5.1: * New "compact" option for formatter. If set, the formatter tries to produce a more compact output by avoiding some line breaks * The strip comments filter was a bit greedy and removed too much whitespace (issue772). Note: In some cases you might want to add strip_whitespace=True where you previously used just strip_comments=True. strip_comments did some of the work that strip_whitespace should do. * Fix error when splitting statements that contain multiple CASE clauses within a BEGIN block (issue784). * Fix whitespace removal with nested expressions (issue782). * Fix parsing and formatting of ORDER clauses containing NULLS FIRST or NULLS LAST (issue532).Dirk Mueller2024-08-19 07:44:02 +0000
00f38b252bAccepting request 1172288 from devel:languages:python
Dominique Leuenberger
2024-05-08 09:38:39 +0000
a070a8f675- Update to 0.5.0: * Notable Changes + Drop support for Python 3.5, 3.6, and 3.7. + Python 3.12 is now supported. + IMPORTANT: Fixes a potential denial of service attack (DOS) due to recursion error for deeply nested statements. (CVE-2024-2430, bsc#1223603) * Enhancements: + Splitting statements now allows to remove the semicolon at the end. Some database backends love statements without semicolon. + Support TypedLiterals in get_parameters. + Improve splitting of Transact SQL when using GO keyword. + Support for some JSON operators. + Improve formatting of statements containing JSON operators. + Support for BigQuery and Snowflake keywords. + Support parsing of OVER clause. * Bug Fixes + Ignore dunder attributes when creating Tokens. + Allow operators to precede dollar-quoted strings. + Fix parsing of nested order clauses. + Thread-safe initialization of Lexer class. + Classify TRUNCATE as DDL and GRANT/REVOKE as DCL keywords. + Fix parsing of PRIMARY KEY. * Other + Optimize performance of matching function.
Steve Kowalik
2024-05-07 02:22:41 +0000
bafa6089f8Accepting request 1154920 from devel:languages:python
Dominique Leuenberger
2024-03-06 22:03:09 +0000
03155dd165Accepting request 1092153 from home:ecsos:pythonDirk Mueller2023-06-11 11:30:15 +0000
7bd47ff1c9Accepting request 1089053 from devel:languages:python
Dominique Leuenberger
2023-05-26 18:15:28 +0000
302070b8d2- Update to 0.4.4: * IMPORTANT: This release fixes a security vulnerability in the parser where a regular expression vulnerable to ReDOS (Regular Expression Denial of Service) was used. See the security advisory for details (CVE-2023-30608, bsc#1210617, https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2) The vulnerability was discovered by @erik-krogh from GitHub Security Lab (GHSL). Thanks for reporting! * Revert a change from 0.4.0 that changed IN to be a comparison (issue694). The primary expectation is that IN is treated as a keyword and not as a comparison operator. That also follows the definition of reserved keywords for the major SQL syntax definitions. * Fix regular expressions for string parsing. * sqlparse now uses pyproject.toml instead of setup.cfg (issue685).Matej Cepl2023-05-25 16:30:01 +0000
890239637bAccepting request 1007717 from devel:languages:python
Richard Brown
2022-10-04 18:37:14 +0000
2e479a6918- update to 0.4.3: * Add support for DIV operator. * Add support for additional SPARK keywords. * Avoid tokens copy. * Add REGEXP as a comparision. * Add DISTINCTROW keyword for MS Access. * Improve parsing of CREATE TABLE AS SELECT. * Fix spelling of INDICATOR keyword. * Fix formatting error in EXTRACT function. * Fix bad parsing of create table statements that use lower case. * Handle backtick as valid quote char. * Allow any unicode character as valid identifier name.Dirk Mueller2022-10-03 16:02:44 +0000
34917340dbAccepting request 922565 from devel:languages:python
Dominique Leuenberger
2021-10-20 18:23:12 +0000
b12de88590Accepting request 922560 from home:jgrassler:branches:devel:languages:pythonMatej Cepl2021-10-01 13:47:56 +0000
835ed44ca6Accepting request 867445 from devel:languages:python
Dominique Leuenberger
2021-02-01 12:26:00 +0000
ee02d1dbe6Accepting request 867403 from home:alarrosa:branches:devel:languages:pythonMarkéta Machová2021-01-28 11:25:30 +0000
2274e03d38Accepting request 850920 from devel:languages:python
Dominique Leuenberger
2020-11-29 11:19:01 +0000
da538c5371- update to 0.4.1: * Python 3.9 support * Remove support for end-of-life Python 2.7 and 3.4. Python 3.5+ is now required. * Remaining strings that only consist of whitespaces are not treated as statements anymore. Code that ignored the last element from sqlparse.split() should be updated accordingly since that function now doesn't return an empty string as the last element in some cases (issue496). - remove non-upstream stdout-encoding-set.patch patchDirk Mueller2020-11-26 08:44:08 +0000
010d0ce5beAccepting request 787620 from devel:languages:python
Dominique Leuenberger
2020-03-26 23:28:45 +0000
7b6436d15d- Add stdout-encoding-set.patch to use sys.stdout.reconfigure() if the stream is an instance of TextIOWrapper to support a pytest change.
Steve Kowalik
2020-03-24 02:46:35 +0000
85757991a1- Add stdout-encoding-set.patch to use sys.stdout.reconfigure() for Python 3.
Steve Kowalik
2020-03-23 06:36:48 +0000
8a766c097dAccepting request 783018 from devel:languages:python
Dominique Leuenberger
2020-03-11 17:45:27 +0000
46ded828ef- update to v0.3.1: * Add HQL keywords (pr475, by matwalk). * Add support for time zone casts (issue489). * Enhance formatting of AS keyword (issue507, by john-bodley). * Stabilize grouping engine when parsing invalid SQL statements. * Fix splitting of SQL with multiple statements inside parentheses (issue485, pr486 by win39). * Correctly identify NULLS FIRST / NULLS LAST as keywords (issue487). * Fix splitting of SQL statements that contain dollar signs in identifiers (issue491). * Remove support for parsing double slash comments introduced in 0.3.0 (issue456) as it had some side-effects with other dialects and doesn't seem to be widely used (issue476). * Restrict detection of alias names to objects that acutally could have an alias (issue455, adopted some parts of pr509 by john-bodley). * Fix parsing of date/time literals (issue438, by vashek). * Fix initialization of TokenList (issue499, pr505 by john-bodley). * Fix parsing of LIKE (issue493, pr525 by dbczumar). * Improve parsing of identifiers (pr527 by liulk).Dirk Mueller2020-03-09 16:23:34 +0000
53a866e058Accepting request 695140 from devel:languages:python
Dominique Leuenberger
2019-04-19 16:35:38 +0000
fcb3220d99- Use %pytest macro
Tomáš Chvátal
2019-04-17 12:00:44 +0000
13ff101e6cAccepting request 684138 from devel:languages:python
Dominique Leuenberger
2019-03-14 13:54:41 +0000
159f6fe384Accepting request 684132 from home:jayvdb:django
Thomas Bechtold
2019-03-12 05:12:38 +0000
f81acc6dc7Accepting request 631152 from devel:languages:python
Dominique Leuenberger
2018-08-24 15:11:15 +0000
3110b81de3Accepting request 631122 from home:alarrosa:branches:devel:languages:python
Tomáš Chvátal
2018-08-23 19:01:26 +0000
4f8a8450c5Accepting request 509673 from devel:languages:python
Dominique Leuenberger
2017-09-05 13:14:25 +0000
e58a4f694dAccepting request 509611 from home:tbechtold:branches:devel:languages:pythonDirk Mueller2017-07-12 09:18:00 +0000