Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
sysfce2
python-sqlparse
Repository navigation
Code
Pull requests
Actions
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
python-sqlparse
sqlparse
engine
grouping.py
on
master
User selector
All users
Datepicker
All time
Commit history
Commits on Aug 10, 2026
Fix quadratic DoS in group_comments (GHSA-f2ff-p2ww-7p4p)
Show description for ef2012a
andialbrecht
committed
ef2012a
View commit details
Copy full SHA for ef2012a
View code at this point
Browse repository at this point
Commits on Jul 22, 2026
Fix function grouping skipped for lowercase 'as' in CREATE TABLE AS SELECT
Show description for 111b35c
Osamaali313
committed
111b35c
View commit details
Copy full SHA for 111b35c
View code at this point
Browse repository at this point
Commits on May 21, 2026
Switch from flake8 to ruff.
andialbrecht
committed
8efa393
View commit details
Copy full SHA for 8efa393
View code at this point
Browse repository at this point
Commits on Dec 8, 2025
Enhance DoS protection by raising SQLParseError for exceeded grouping limits (fixes #827).
Show description for da67ac1
andialbrecht
committed
da67ac1
View commit details
Copy full SHA for da67ac1
View code at this point
Browse repository at this point
Commits on Nov 25, 2025
Add hard limits for grouping to prevent DoS attacks.
andialbrecht
committed
40ed3aa
View commit details
Copy full SHA for 40ed3aa
View code at this point
Browse repository at this point
Commits on May 13, 2024
Fix grouping of comments (fixes #772).
Show description for 8b03427
andialbrecht
committed
8b03427
View commit details
Copy full SHA for 8b03427
View code at this point
Browse repository at this point
Commits on Apr 13, 2024
Add OVER clause, and group it into Function (fixes #701)
r33s3n6
authored and
andialbrecht
committed
617b8f6
View commit details
Copy full SHA for 617b8f6
View code at this point
Browse repository at this point
Commits on Mar 16, 2024
Improve formatting of statements with JSON operators (fixes #542).
andialbrecht
committed
8c24779
View commit details
Copy full SHA for 8c24779
View code at this point
Browse repository at this point
Commits on Mar 5, 2024
Ensure nested ordered identifiers are grouped (fixes #745)
john-bodley
authored and
andialbrecht
committed
39b5a02
View commit details
Copy full SHA for 39b5a02
View code at this point
Browse repository at this point
Commits on Sep 19, 2023
Code cleanup.
andialbrecht
committed
3696d53
View commit details
Copy full SHA for 3696d53
View code at this point
Browse repository at this point
Commits on Aug 24, 2022
Fixed bad parsing of create table statements that use lower case
Simon Heisterkamp
authored and
andialbrecht
committed
403de6f
View commit details
Copy full SHA for 403de6f
View code at this point
Browse repository at this point
CREATE TABLE tbl AS SELECT should return get_alias() for its column
chezou
authored and
andialbrecht
committed
7de1999
View commit details
Copy full SHA for 7de1999
View code at this point
Browse repository at this point
Commits on Aug 16, 2022
Make tzcast grouping function less eager
Erik Cederstrand
authored and
andialbrecht
committed
3d3df9d
View commit details
Copy full SHA for 3d3df9d
View code at this point
Browse repository at this point
Commits on Oct 7, 2020
Update copyright notice.
andialbrecht
committed
10b0ec2
View commit details
Copy full SHA for 10b0ec2
View code at this point
Browse repository at this point
Commits on Sep 30, 2020
Fix an issue with negative indexes causing IndexError in some cases.
andialbrecht
committed
10231d8
View commit details
Copy full SHA for 10231d8
View code at this point
Browse repository at this point
Commits on Sep 1, 2020
Remove support for end-of-life Pythons
Show description for 3e3892f
jdufresne
committed
3e3892f
View commit details
Copy full SHA for 3e3892f
View code at this point
Browse repository at this point
Commits on Mar 29, 2020
[fix] Adding TypedLiteral to comparison
John Bodley
authored and
andialbrecht
committed
28a2acd
View commit details
Copy full SHA for 28a2acd
View code at this point
Browse repository at this point
Commits on Feb 2, 2020
[grouping] group_as() no longer groups AS CTE
Show description for a301b79
liulk
authored and
andialbrecht
committed
a301b79
View commit details
Copy full SHA for a301b79
View code at this point
Browse repository at this point
[fix] Fixing typed literal regression
John Bodley
authored and
andialbrecht
committed
44eacf2
View commit details
Copy full SHA for 44eacf2
View code at this point
Browse repository at this point
Commits on Jan 6, 2020
Stabilize grouping engine when parsing invalid SQL statements.
Show description for 165095b
Andreas Albrecht
authored and
Andreas Albrecht
committed
165095b
View commit details
Copy full SHA for 165095b
View code at this point
Browse repository at this point
Commits on Oct 20, 2019
Code cleanup.
Andreas Albrecht
authored and
Andreas Albrecht
committed
b8b65c5
View commit details
Copy full SHA for b8b65c5
View code at this point
Browse repository at this point
support typed literals (if that's what they're called)
vashek
authored and
andialbrecht
committed
e972939
View commit details
Copy full SHA for e972939
View code at this point
Browse repository at this point
Commits on May 16, 2019
Add support for time zone casts (fixes #489).
andialbrecht
committed
7168e5c
View commit details
Copy full SHA for 7168e5c
View code at this point
Browse repository at this point
Commits on Mar 10, 2019
Fix formatting on INSERT (fixes #329)
Show description for fa7def0
fredyw
authored and
andialbrecht
committed
fa7def0
View commit details
Copy full SHA for fa7def0
View code at this point
Browse repository at this point
Code cleanup.
Andreas Albrecht
authored and
Andreas Albrecht
committed
6a7eb24
View commit details
Copy full SHA for 6a7eb24
View code at this point
Browse repository at this point
Commits on Jul 31, 2018
Update copyright header (fixes #372).
andialbrecht
committed
3853a07
View commit details
Copy full SHA for 3853a07
View code at this point
Browse repository at this point
Commits on Nov 29, 2017
Fix typos
vmuriart
committed
43478c6
View commit details
Copy full SHA for 43478c6
View code at this point
Browse repository at this point
Commits on Sep 24, 2017
Fix handling of semicolon when grouping assignments (fixes #359).
Show description for 097478e
andialbrecht
committed
097478e
View commit details
Copy full SHA for 097478e
View code at this point
Browse repository at this point
Commits on Apr 18, 2017
Re-order parsing so that comparisons are seens as identifiers (fixes #327).
andialbrecht
committed
dff274c
View commit details
Copy full SHA for dff274c
View code at this point
Browse repository at this point
Commits on Oct 24, 2016
Fix special case for #284 when statement starts with orphaned AS.
andialbrecht
committed
b68e4b7
View commit details
Copy full SHA for b68e4b7
View code at this point
Browse repository at this point
Commits on Oct 1, 2016
Handle operator grouping after identifying typecasts (fixes #297).
andialbrecht
committed
f0754a6
View commit details
Copy full SHA for f0754a6
View code at this point
Browse repository at this point
Commits on Sep 14, 2016
Correct license link (fixes #288).
andialbrecht
committed
4430c5c
View commit details
Copy full SHA for 4430c5c
View code at this point
Browse repository at this point
Commits on Aug 24, 2016
Merge pull request #285 from vmuriart/unify_naming_schema
Show description for 791a331
andialbrecht
authored
791a331
View commit details
Copy full SHA for 791a331
View code at this point
Browse repository at this point
Commits on Aug 23, 2016
Fix #284 as grouping
vmuriart
committed
31830af
View commit details
Copy full SHA for 31830af
View code at this point
Browse repository at this point
Unify_naming_schema. Closes #283
vmuriart
committed
a36008a
View commit details
Copy full SHA for a36008a
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.