You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SQL Server ORDER BY and DISTINCT is not parsed #75
SELECTp.NameFROMProduction.Product p inner joindbo.productdetails pd onp.id=pd.productidgroup byp.Nameorder byp.name
And even with MsSqlDialect, the following sample code will return select.SortBy as null:
varsql=@"SELECT p.Name FROM Production.Product p inner join dbo.productdetails pd on p.id=pd.productidgroup by p.Nameorder by p.name"varstatements=newParser().ParseSql(sql,newMsSqlDialect());foreach(variteminstatements){if(itemisStatement.SelectselectStatement){varselect=selectStatement.Query.Body.AsSelect();// select.SortBy is null}}
And the issue happens with DISTINCT:
SELECT distinct p.[Name] FROMProduction.Product p inner joindbo.productdetails pd onp.id=pd.productid
The select.DistributeBy is null.
Is there specific option that we need to use to support it?
Activity
[-]SQL Server order by is not parsed[/-][+]SQL Server ORDER BY and DISTINCT is not parsed[/+]