Whole file
andialbrecht/sqlparse
The author described this change as “[fix] Adding TypedLiteral to comparison”. It counts as a record because the check below fails on the code as it stood at 6e39e02e3 and passes on 28a2acdd9, with nothing else changed between the two runs.
Projectandialbrecht/sqlparse
Fix saved2020-03-29
Sharing licenceBSD-3-Clause · LICENSE
Change size+1 −1
What the code was meant to do, written into the code itself as a save note
[fix] Adding TypedLiteral to comparison
The change
| 192 | 192 | ||
| 193 | 193 | def group_comparison(tlist): | |
| 194 | 194 | sqlcls = (sql.Parenthesis, sql.Function, sql.Identifier, | |
| 195 | - | sql.Operation) | |
| 195 | + | sql.Operation, sql.TypedLiteral) | |
| 196 | 196 | ttypes = T_NUMERICAL + T_STRING + T_NAME | |
| 197 | 197 | ||
| 198 | 198 | def match(token): |
The check that tells the two apart
fail→pass·tests/test_grouping.py::test_comparison_with_typed_literal
Check file tests/test_grouping.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it6e39e02e3898b77415c558a822079a1f885524d5
Broken version dated2020-02-29
Modulesqlparse.engine.grouping
Units changedgroup_comparison
Fingerprintb4bff3a8f22b9bae
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.
Other bugs found in andialbrecht/sqlparse
- 2026-07-25Fix get_real_name for names with more than two dotted parts (#332)
- 2026-07-22Fix function grouping skipped for lowercase 'as' in CREATE TABLE AS SELECT
- 2025-11-29StatementSplitter
- 2025-11-28StatementSplitter
- 2024-07-15StatementSplitter
- 2024-04-13Raise SQLParseError instead of RecursionError.