镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Fix Last() on primitive collections returning the first array element - #3925

Open
sanjaysingh wants to merge 1 commit into
npgsql:mainfrom
sanjaysingh:fix/3909-primitive-collection-last
Open

sanjaysingh wants to merge 1 commit into
npgsql:mainfrom
sanjaysingh:fix/3909-primitive-collection-last

Conversation

@sanjaysingh

@sanjaysingh sanjaysingh commented Sep 30, 2026 •

Copy link
Copy Markdown

Summary

Test plan

  • dotnet build for EFCore.PG and EFCore.PG.FunctionalTests

…s the last element.

The unnest cleanup treated that sort as redundant and collapsed Last() to LIMIT 1.

Co-authored-by: Cursor <cursoragent@cursor.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Last()/LastOrDefault() on primitive collections is translated like First() — missing descending ordinality ordering

1 participant