You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Postgresql doesn't support FOR UPDATE in nullable side of outer join (see here), caching access token after introspection throws this error on master branch:
Postgresql:
ERROR: FOR UPDATE cannot be applied to the nullable side of an outer join
STATEMENT: SELECT "oauth2_provider_accesstoken"."id", "oauth2_provider_accesstoken"."user_id", "oauth2_provider_accesstoken"."source_refresh_token_id", "oauth2_provider_accesstoken"."token", "oauth2_provider_accesstoken"."application_id", "oauth2_provider_accesstoken"."expires", "oauth2_provider_accesstoken"."scope", "oauth2_provider_accessto ken"."created", "oauth2_provider_accesstoken"."updated", "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user"."is_superuser", "auth_user"."username", "auth_user"."first_ name", "auth_user"."last_name", "auth_user"."email", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."date_joined", "oauth2_provider_application"."id", "oauth2_provider_application"." client_id", "oauth2_provider_application"."user_id", "oauth2_provider_application"."redirect_uris", "oauth2_provider_application"."client_type", "oauth2_provider_application". "authorization_grant_ type", "oauth2_provider_application"."client_secret", "oauth2_provider_application"."name", "oauth2_provider_application"."skip_authorization", "oauth2_provider_application"."created", "oauth2_pro vider_application"."updated" FROM "oauth2_provider_accesstoken" LEFT OUTER JOIN "auth_user" ON ("oauth2_provider_accesstoken"."user_id" = "auth_user"."id") LEFT OUTER JOIN "oauth2_provider_application" ON ("oauth2_provider_accesstoken"."application_id" = "oauth2_provider_application"."id") WHERE "oauth2_provider_accesstoken"."token" = 'TOKEN' FOR UPDATE
egegunes
changed the title
Postgresql: FOR UPDATE cannot be applied to the nullable side of an outer join
FOR UPDATE cannot be applied to the nullable side of an outer join
May 9, 2019
Since Postgresql doesn't support
FOR UPDATE
in nullable side of outer join (see here), caching access token after introspection throws this error on master branch:Postgresql:
Django:
Removing
select_related
fixes the issue.The text was updated successfully, but these errors were encountered: