Skip to content

Invalid SQL when using COUNT with DISTINCT #186

@err0x1a

Description

@err0x1a

Invalid SQL is generated when using COUNT in conjunction with DISTINCT for MSSQL.

For Instance code:
q.From("my_table").Distinct().AsCount()

Will generate:
SELECT COUNT(DISTINCT *) AS [count] FROM [my_table]

I would be grateful if you could prioritize a fix.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions