dotnet / dotnet/efcore

Incorrect projected ColumnExpression when using SqlQuery

Open
#34,518 0 comments 0 reactions 0 assignees View on GitHub
area-query customer-reported
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

When translating SqlQueryRootExpression, the resulting SelectExpression's ColumnExpression (in `_projectionMappings`) has Type e.g. `IQueryable` instead of `string` - this is an incorrect tree representation.

This triggered #33272, which was worked around by @cincuranet in #33580, but without addressing the actual root cause (which is an invalid tree). This surfaced again EFCore.PG where the workaround wasn't yet applied.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.