ServiceStack / Issues

Issue Tracker for the commercial versions of ServiceStack
11 stars 8 forks source link

Queries with OrderBy produces bad SQL in 5.12 #763

Closed dlj closed 3 years ago

dlj commented 3 years ago

Hello

After updating to 5.12, queries with OrderBy started to add "AS" to the expression if a column had an Alias.

Small test using SqlLite has been added. It also happens on SQLServer.

OrmLite.OrderByProblem.zip

mythz commented 3 years ago

This should be resolved from this commit.

This change is available from v5.12.1+ that's now available on MyGet.

Thanks for the repro 👍