per page, with , order by , clip by
Results of 1 - 10 of about 27 for subquery (0.002 sec.)
クエリ式 (Query Expression) 13989
クエリ式 (Query Expression) クエリ式 (query expression) は、update、create、filter、order by、annotation、またはaggregateの一部として使用できる値または計算を記述します。式が真偽値を出力する場合、フィルタで直接使用できます。クエリの記述に使用 ... to use if ... elif ... else logic in queries. Django natively supports SQL CASE expressions. For more details see 条件式 . Subquery() 式 class Subquery ( queryset , output_field = None ) [ソース] Subquery 式を使うと、 QuerySet に明示的にサブクエリを追加で ... 最新コメントの投稿者のメールアドレスをアノテーションとして付けることができます: >>> from django.db.models import OuterRef , Subquery >>> newest = Comment . objects . filter ( post = OuterRef ( "pk" )) . order_by ( "-created_at" ) >>> Post . objects . anno ... tate ( newest_commenter_email = Subquery ( newest . values ( "email" )[: 1 ])) PostgreSQLの場合、SQLは以下のようになります: SELECT "post" . "id" , ( SELECT U0 . "e ...
https://man.mtool.work/django/6.1/ref/models/expressions.html
Django 3.0.2 リリースノート 11125
Django 3.0.2 リリースノート 2020年1月2日 Django 3.0.2 では、3.0.1 にあったいくつかのバグを修正しました。 バグ修正 Fixed a regression in Django 3.0 that didn't include columns referenced by a Subquery() in the GROUP BY clause ( #31094 ). Fix ... ed a regression in Django 3.0 where QuerySet.exists() crashed if a queryset contained an aggregation over a Subquery() ( #31109 ). Fixed a regression in Django 3.0 that caused a migration crash on PostgreSQL 10+ when adding a foreign key a ...
https://man.mtool.work/django/6.1/releases/3.0.2.html
Django 3.0.7 リリースノート 9792
Django 3.0.7 リリースノート June 3, 2020 Django 3.0.7 では、3.0.6 の2つのセキュリティの問題といくつかのバグを修正しました。 CVE-2020-13254: Potential data leakage via malformed memcached keys In cases where a memcached backend does not perf ... a regression in Django 3.0 where QuerySet.values() and values_list() crashed if a queryset contained an aggregation and a subquery annotation ( #31566 ). Fixed a regression in Django 3.0 where aggregates used wrong annotations when a queryset has multip ... tained an aggregation and an Exists() annotation on Oracle ( #31584 ). Fixed a regression in Django 3.0 where all resolved Subquery() expressions were considered equal ( #31607 ). Fixed a regression in Django 3.0.5 that affected translation loading for a ...
https://man.mtool.work/django/6.1/releases/3.0.7.html
Django 1.11.25 リリースノート 9019
Django 1.11.25 リリースノート October 1, 2019 Django 1.11.25 fixes a regression in 1.11.23. バグ修正 Fixed a crash when filtering with a Subquery() annotation of a queryset containing django.contrib.postgres.fields.JSONField or HStoreField ...
https://man.mtool.work/django/6.1/releases/1.11.25.html
Django 2.1.13 リリースノート 9019
Django 2.1.13 リリースノート October 1, 2019 Django 2.1.13 fixes a regression in 2.1.11. バグ修正 Fixed a crash when filtering with a Subquery() annotation of a queryset containing django.contrib.postgres.fields.JSONField or HStoreField ( # ...
https://man.mtool.work/django/6.1/releases/2.1.13.html
Django 3.0.11 リリースノート 9019
Django 3.0.11 リリースノート November 2, 2020 Django 3.0.11 fixes a regression in 3.0.7 and adds compatibility with Python 3.9. バグ修正 Fixed a regression in Django 3.0.7 that didn't use Subquery() aliases in the GROUP BY clause ( #32152 ) ...
https://man.mtool.work/django/6.1/releases/3.0.11.html
Django 3.0.3 リリースノート 9019
Django 3.0.3 リリースノート 2020年2月3日 Django 3.0.3 では、セキュリティの問題1件と 3.0.2 におけるいくつかのバグを修正しました。 CVE-2020-7471: StringAgg(delimiter) を通じた潜在的 SQL インジェクション StringAgg 集計関数には、適切に加工された ... delimiter を使った SQL インジェクションが存在しました。 バグ修正 Subquery() アノテーションから DateField 、 DateTimeField 、あるいは TimeField を減算したときにクラッシュするという Django 3.0 のリグ ... きグループが非文字列の値しか含まない場合でも max_length 属性が最長の選択に合致するようなチェックを修正しました ( #31155 )。 Subquery を利用した際、 filter 引数のある ArrayAgg と StringAgg がクラッシュする Django 2.2 のリグレッションを修正しました ( #31097 ...
https://man.mtool.work/django/6.1/releases/3.0.3.html
Django 3.0.6 リリースノート 9019
Django 3.0.6 リリースノート May 4, 2020 Django 3.0.6 fixes a bug in 3.0.5. バグ修正 Fixed a regression in Django 3.0 that caused a crash when filtering a Subquery() annotation of a queryset containing a single related field against a Simple ...
https://man.mtool.work/django/6.1/releases/3.0.6.html
Django 2.2.6 リリースノート 8838
Django 2.2.6 リリースノート October 1, 2019 Django 2.2.6 fixes several bugs in 2.2.5. バグ修正 Fixed migrations crash on SQLite when altering a model containing partial indexes ( #30754 ). Fixed a regression in Django 2.2.4 that caused a cr ... ash when filtering with a Subquery() annotation of a queryset containing django.contrib.postgres.fields.JSONField or HStoreField ( #30769 ). ...
https://man.mtool.work/django/6.1/releases/2.2.6.html
Django 1.11.7 リリースノート 8640
Django 1.11.7 リリースノート November 1, 2017 Django 1.11.7 fixes several bugs in 1.11.6. バグ修正 Prevented cache.get_or_set() from caching None if the default argument is a callable that returns None ( #28601 ). Fixed the Basque DATE_FORM ... AT string ( #28710 ). Made QuerySet.reverse() affect nulls_first and nulls_last ( #28722 ). Fixed unquoted table names in Subquery SQL when using OuterRef ( #28689 ). ...
https://man.mtool.work/django/6.1/releases/1.11.7.html
PREV 1 2 3 NEXT