Skip to content

DDC-2695: Order by clause left in subquery when using MSSQL and Paginator #3435

@doctrinebot

Description

@doctrinebot

Jira issue originally created by user manseuk:

When using the Doctrine paginator and Fetch Join Collections = true and when the original query has an "ORDER BY" clause in it - the subquery created is something like "SELECT DISTINCT FROM (.... ORDER BY ....) as dctrn_result" - when using Microsoft SQL server having the "ORDER BY" clause in a subquery throws an error. This is a similar problem to http://doctrine-project.org/jira/browse/[DDC-2282](http://www.doctrine-project.org/jira/browse/DDC-2282) but that was for the Count Walker - this is for the LimitSubqueryOutputWalker. The fix is the same.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions