Ticket #19 (closed defect: fixed)
Field alias does not work in ORDER BY
| Reported by: | sean@… | Owned by: | dhughes |
|---|---|---|---|
| Type: | defect | Priority: | normal |
| Milestone: | Component: | Reactor - Gateway | |
| Version: | Severity: | normal | |
| Keywords: | Cc: |
Description
My Objects and Persistence wiki fails because ORDER BY does not seem to convert field aliases to field names.
Given a gateway gw, do gw.getAll("someAlias") and the order node has only fieldAlias in it and the generated SQL ends up with the alias instead of the actual field name.
If you fix line 632 of abstractGateway.cfc so that it refers to arguments.node.fieldName instead of fieldAlias (which solves some other aliasing bugs), then gw.getAll("someAlias") causes an exception at line 632 because arguments.node.fieldName does not exist (it exists for other get*() operations).
Change History
Note: See
TracTickets for help on using
tickets.

