One function
MySQLQuery in kayak/pypika
The author described this change as “fix: mysql create/drop tables”. It counts as a record because the check below fails on the code as it stood at 920a4cdd9 and passes on 71ea7c39a, with nothing else changed between the two runs.
Projectkayak/pypika
Fix saved2021-08-26
Sharing licenceApache-2.0 · LICENSE.txt
Change size+12 −0
What the code was meant to do, written into the code itself as a docstring
Defines a query class for use with MySQL.
The change
| 10 | 10 | @classmethod | |
| 11 | 11 | def load(cls, fp: str) -> "MySQLLoadQueryBuilder": | |
| 12 | 12 | return MySQLLoadQueryBuilder().load(fp) | |
| 13 | + | ||
| 14 | + | @classmethod | |
| 15 | + | def create_table(cls, table: Union[str, Table]) -> "MySQLCreateQueryBuilder": | |
| 16 | + | return MySQLCreateQueryBuilder().create_table(table) | |
| 17 | + | ||
| 18 | + | @classmethod | |
| 19 | + | def create_table(cls, table: Union[str, Table]) -> "MySQLCreateQueryBuilder": | |
| 20 | + | return MySQLCreateQueryBuilder().create_table(table) | |
| 21 | + | ||
| 22 | + | @classmethod | |
| 23 | + | def drop_table(cls, table: Union[str, Table]) -> "MySQLDropQueryBuilder": | |
| 24 | + | return MySQLDropQueryBuilder().drop_table(table) |
The check that tells the two apart
fail→pass·pypika/tests/dialects/test_mysql.py::TableTests::test_create_table
Check file pypika/tests/dialects/test_mysql.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 it920a4cdd99cbcd85d55af2d8d2c601d8bef8bfc2
Broken version dated2021-07-21
Modulepypika.dialects
Units changedMySQLQuery
Fingerprint68771ea302360a97
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-01-11Fix empty Postgres array syntax (#539)
- 2021-01-04Fix PostgreSQLQueryBuilder returning clause code causing Py3.9 test failures
- 2020-12-09Fix groupby_alias specified multiple times in kwargs when subqueries are used