Skip to content

A source column named $$$0 is dropped from the result when the query has ORDER BY #3146

Backlog

Description

@mathiasrw
alasql('SELECT a, [$$$0] FROM ? ORDER BY a', [[{a: 2, $$$0: 'x'}, {a: 1, $$$0: 'y'}]]);
alasql('SELECT a, [$$$0] FROM ?', [[{a: 2, $$$0: 'x'}, {a: 1, $$$0: 'y'}]]);

With ORDER BY it gives [{a: 1}, {a: 2}]. Without ORDER BY the column is kept.

It should give [{a: 1, $$$0: 'y'}, {a: 2, $$$0: 'x'}].

Fixed by #3165.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions