Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Call to OrderBy with an expression that is not a simple property selection results in invalid SQL. #9

Open
sflanker opened this issue Jun 19, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@sflanker
Copy link
Member

See test case:

[Fact(Skip = "BUG: Expression in OrderBy results in invalid SQL string.")]
public override void OrderBy_Expression() {
base.OrderBy_Expression();
}

In this example the sorting expression is the product of two numeric fields. Currently this expression results in the SQL text:

... ORDER BY T.`UnitsInStock`T.`UnitPrice` ASC

The expected SQL text is:

... ORDER BY (T.`UnitsInStock` * T.`UnitPrice`) ASC
@sflanker sflanker added the bug Something isn't working label Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant