Skip to content

Parsing does not expand COALESCE/NULLIF, results in SqlNullScalarExpression #36

Description

@DanielFryeSAMC

I've found that when attempting to parse COALESCE and NULLIF statements that the parser ends up evaluating these to a SqlNullScalarExpression with no children. As an example, for the following query:

SELECT COALESCE((SELECT TOP 1 1 FROM MYTABLE), 2)

The parser stops at COALESCE((SELECT TOP 1 1 FROM MYTABLE), 2) as a SqlNullScalarExpression with no children. The SELECT sub-query inside of that is never parsed at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions