Skip to content

SqlServerCompiler removing 'GROUP BY' clause after Compile() #330

@mark-at-tusksoft

Description

@mark-at-tusksoft

SqlKata Version: 1.1.7

.NET Framework: 4.7.2

Observed Behavior: After compiling a query that contains multiple clauses (and nested query), the final clause which is a group by is silently removed from the clauses collection.

Expected behavior: The group by clause is added to the resulting SQL and not removed from the clauses collection. Additionally, if the compiler cannot add it, an informative exception is thrown.

clause
before
after

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions