Skip to content

JsonScalarExpression does not get visited properly in SqlNullabilityProcessor #36462

@roji

Description

@roji

Current implementation of VisitJsonScalar (code):

protected virtual SqlExpression VisitJsonScalar(
    JsonScalarExpression jsonScalarExpression,
    bool allowOptimizedExpansion,
    out bool nullable)
{
    nullable = jsonScalarExpression.IsNullable;

    return jsonScalarExpression;
}

Since we don't visit the Json expression inside JsonScalarExpression, stuff like EF.Constant() isn't applied.

/cc @cincuranet

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions