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.

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

303303 self.field = field
304304
305305 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))
307307
308308
309309 # Null Functions

The check that tells the two apart

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