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
View 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
Accelerator
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 }}
andialbrecht
/
sqlparse
Public
Notifications
You must be signed in to change notification settings
Fork
736
Star
4k
Code
Issues
241
Pull requests
33
Discussions
Actions
Security and quality
9
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Commits
Breadcrumbs
History for
sqlparse
sqlparse
engine
on
master
User selector
All users
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
Refactor StatementSplitter to decompose split level logic and centralize standalone BEGIN; handling
andialbrecht
committed
ec28d0e
View commit details
Copy full SHA for ec28d0e
View code at this point
Browse repository at this point
Refactor statement splitter to a simplified stack-based architecture (fixes #845)
andialbrecht
committed
8f978ca
View commit details
Copy full SHA for 8f978ca
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 29, 2025
Fix splitting of BEGIN TRANSACTION statements (fixes #826).
andialbrecht
committed
5ca50a2
View commit details
Copy full SHA for 5ca50a2
View code at this point
Browse repository at this point
Commits on Nov 28, 2025
Code cleanup.
andialbrecht
committed
96a67e2
View commit details
Copy full SHA for 96a67e2
View code at this point
Browse repository at this point
Fix handling of semicolons inside BEGIN...END blocks (fixes #809).
Show description for 1a3bfbd
andialbrecht
committed
1a3bfbd
View commit details
Copy full SHA for 1a3bfbd
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 Dec 10, 2024
Generalize RecursionError handling.
Show description for bbd8f51
living180
authored and
andialbrecht
committed
bbd8f51
View commit details
Copy full SHA for bbd8f51
View code at this point
Browse repository at this point
Commits on Jul 15, 2024
Fix error when splitting statements that contain multiple CASE clauses within a BEGIN block (fixes #784).
andialbrecht
committed
791e25d
View commit details
Copy full SHA for 791e25d
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 15, 2024
Improve splitting of Transact SQL when using GO keyword (fixes #762).
andialbrecht
committed
7334ac9
View commit details
Copy full SHA for 7334ac9
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 Oct 12, 2023
Add comment.
andialbrecht
committed
f101546
View commit details
Copy full SHA for f101546
View code at this point
Browse repository at this point
Add option to remove trailing semicolon when splitting (fixes #742).
andialbrecht
committed
115e208
View commit details
Copy full SHA for 115e208
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
Fix splitting of statements using CASE ... WHEN (fixes #580).
andialbrecht
committed
d7b1ee3
View commit details
Copy full SHA for d7b1ee3
View code at this point
Browse repository at this point
Commits on Sep 13, 2020
Don't flush token streams iff they only contain whitespace tokens (fixes #496).
andialbrecht
committed
27ad256
View commit details
Copy full SHA for 27ad256
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
Previous
Next
You can’t perform that action at this time.