Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.
This repository was 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

@sflanker

Description

@sflanker

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions