Ticket #825 (closed defect: fixed)
DBMSSQL::applyLimit() and DISTINCT keyword
| Reported by: | jan.blaha | Owned by: | francois |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5.0 |
| Component: | Runtime (PHP5) | Version: | 1.4.0 |
| Severity: | major | Keywords: | distinct |
| Cc: |
Description (last modified by francois) (diff)
DBMSSQL::applyLimit() method generates incorrect sql query in case of SELECT DISTINCT statement.
Instead of correct:
SELECT DISTINCT TOP n column FROM table
the method generates:
SELECT TOP n DISTINCT column FROM table
which results in an database error.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
