Subqueries don't use custom queryset
|Reported by:||i_i||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||queryset-refactor|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
All classes in django/db/models/sql/subqueries.py subclass directly from Query class even if database backend has uses_custom_queryset feature. This makes as_sql() methods of these classes handle limits incorrectly with backends (eg oracle) that use different constructs.
Classes in django/db/models/sql/subqueries.py should sublass from backend-specific Query class the same way QuerySet class does.
Change History (5)
Changed 7 years ago by i_i
comment:1 Changed 7 years ago by i_i
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:3 Changed 7 years ago by mtredinnick
- Resolution set to fixed
- Status changed from new to closed