Skip to content

Error with AsCount on query with Common Table Expression #743

@Wimmen

Description

@Wimmen

When you have a query with a Common Table Expression the query.AsCount().Get() function will return "Invalid object name 'cte0'."

When I print the SQL of query.AsCount() the WITH block is missing.

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