Skip to content

Error message regarding no column references in ORDER BY #28

@terrajobst

Description

@terrajobst

Ported from CodePlex

The query reports an error if it detects a constant expression in the ORDER BY clause:

A constant expression was encountered in the ORDER BY list.

This is exactly what SQL Server does. In contrast to SQL Server I would suggest the same error message for GROUP BY:

Each ORDER BY expression must contain at least one column.

(The part with "that is not an outer reference" does not make sense, since nested queries cannot contain an ORDER BY).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions