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.

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

192192
193193 def group_comparison(tlist):
194194 sqlcls = (sql.Parenthesis, sql.Function, sql.Identifier,
195- sql.Operation)
195+ sql.Operation, sql.TypedLiteral)
196196 ttypes = T_NUMERICAL + T_STRING + T_NAME
197197
198198 def match(token):

The check that tells the two apart

failpass·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