Whole file
kayak/pypika
The author described this change as “Fix SQL with join with Extract function”. It counts as a record because the check below fails on the code as it stood at a8348a2c9 and passes on 11733069c, with nothing else changed between the two runs.
Projectkayak/pypika
Fix saved2020-05-04
Sharing licenceApache-2.0 · LICENSE.txt
Change size+1 −1
What the code was meant to do, written into the code itself as a save note
Fix SQL with join with Extract function
The change
| 303 | 303 | self.field = field | |
| 304 | 304 | ||
| 305 | 305 | def get_special_params_sql(self, **kwargs): | |
| 306 | - | return "FROM {field}".format(field=self.field,) | |
| 306 | + | return "FROM {field}".format(field=self.field.get_sql(**kwargs)) | |
| 307 | 307 | ||
| 308 | 308 | ||
| 309 | 309 | # Null Functions |
The check that tells the two apart
fail→pass·pypika/tests/test_functions.py::DateFunctionsTests::test_extract_join
Check file pypika/tests/test_functions.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 ita8348a2c9f55dab9907b667c412611f4777dc1c4
Broken version dated2020-04-30
Modulepypika.functions
Units changedExtract
Fingerprint6fa117f2be1b00aa
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 kayak/pypika
- 2024-04-17fix `Field.__init__` (#742)
- 2023-09-26Fix: Allow the usage of `frozenset` in the `isin(...)` and `notin(...)` functions (#744)
- 2023-09-22fix(terms): fixed EmptyCriterion bug with ComplexCriterion (#732)
- 2021-08-26MySQLQuery
- 2021-01-11Fix empty Postgres array syntax (#539)
- 2021-01-04Fix PostgreSQLQueryBuilder returning clause code causing Py3.9 test failures