Skip to content

Latest commit

 

History

History
94 lines (58 loc) · 2.4 KB

CHANGELOG.md

File metadata and controls

94 lines (58 loc) · 2.4 KB

Django CTE change log

1.3.3 - 2024-06-07

  • Handle empty result sets in CTEs (#92).
  • Fix .explain() in Django >= 4.0 (#91).
  • Fixed bug in deferred loading (#90).

1.3.2 - 2023-11-20

  • Work around changes in Django 4.2 that broke CTE queries due to internally generated column aliases in the query compiler. The workaround is not always effective. Some queries will produce mal-formed SQL. For example, CTE queries with window functions.

1.3.1 - 2023-06-13

  • Fix: .update() did not work when using CTE manager or when accessing nested tables.

1.3.0 - 2023-05-24

  • Add support for Materialized CTEs.
  • Fix: add EXPLAIN clause in correct position when using .explain() method.

v1.2.1 - 2022-07-07

  • Fix compatibility with non-CTE models.

v1.2.0 - 2022-03-30

  • Add support for Django 3.1, 3.2 and 4.0.
  • Quote the CTE table name if needed.
  • Resolve OuterRef in CTE Subquery.
  • Fix default CTEManager so it can use from_queryset corectly.
  • Fix for Django 3.0.5+.

v1.1.5 - 2020-02-07

  • Django 3 compatibility. Thank you @tim-schilling and @ryanhiebert!

v1.1.4 - 2018-07-30

  • Python 3 compatibility.

v1.1.3 - 2018-06-19

  • Fix CTE alias bug.

v1.1.2 - 2018-05-22

  • Use _default_manager instead of objects.

v1.1.1 - 2018-04-13

v1.1.0 - 2018-04-09

  • With.queryset() now uses the CTE model's manager to create a new QuerySet, which makes it easier to work with custom QuerySet classes.

v1.0.0 - 2018-04-04

  • BACKWARD INCOMPATIBLE CHANGE: With.queryset() no longer accepts a model argument.
  • Improve With.queryset() to select directly from the CTE rather than joining to anoter QuerySet.
  • Refactor With.join() to use real JOIN clause.

v0.1.4 - 2018-03-21

  • Fix related field attname masking CTE column.

v0.1.3 - 2018-03-15

  • Add django_cte.raw.raw_cte_sql for constructing CTEs with raw SQL.

v0.1.2 - 2018-02-21

  • Improve error on bad recursive reference.
  • Add more tests.
  • Add change log.
  • Improve README.
  • PEP-8 style fixes.

v0.1.1 - 2018-02-21

  • Fix readme formatting on PyPI.

v0.1 - 2018-02-21

  • Initial implementation.