Bill Schaller
7031539314
Fixed SQL that could be considered invalid on the targeted platforms in LimitSubqueryOutputWalkerTest
2015-01-17 22:12:26 +01:00
Bill Schaller
42bea80a6a
Added failing test cases for limit queries with with complex scalar order by items
2015-01-17 22:12:25 +01:00
Bill Schaller
a4ebc08c4f
* Modified tests in LimitSubqueryOutputWalkerTest.php to not have duplicated order by clauses
...
* Modified LimitSubqueryOutputWalker to not duplicate order by clauses
2015-01-17 22:12:25 +01:00
Marco Pivetta
6e8057b6ea
DDC-3434 - adding test case for HIDDEN
modifier fields in ORDER BY
sequences: should be preserved in any case
2014-12-05 17:10:39 +01:00
Marco Pivetta
0c9a898ccd
DDC-3434 - removed unneeded escaping sequences
2014-12-05 17:09:59 +01:00
Marco Pivetta
c689ff081d
DDC-3336 - adding missing type-hint docblock
2014-12-05 14:55:56 +01:00
Marco Pivetta
2bc8811e62
DDC-3336 - renamed test method for clarity
2014-12-05 14:55:26 +01:00
Marco Pivetta
42e0e6b0b8
DDC-3336 - adding failing test case: scalar expressions in the ORDER BY
clause crash the LimitSubqueryOutputWalker
2014-12-05 14:54:26 +01:00
Marco Pivetta
529a268bbc
DDC-3336 - importing platform classes
2014-12-05 14:53:42 +01:00
František Bereň
54ac6a0535
Updated Asset queries
...
Missing braces and selected fields
2014-07-31 09:01:58 +02:00
František Bereň
458b953522
fixed typos in tests
2014-07-31 08:43:02 +02:00
František Bereň
164352562b
Added Tests for Arbitrary Join
2014-07-31 08:31:39 +02:00
Guilherme Blanco
be1cc14a9c
DDC-2890 Fixed pagination with association order by.
2014-04-17 19:29:18 +00:00
Marco Pivetta
f80fceda0e
DDC-3042 - changing SQL generation tests to respect changes in naming strategy
2014-04-04 03:05:48 +02:00
Guilherme Blanco
20e5d98b7b
Merge pull request #640 from denkiryokuhatsuden/patch-1
...
[Paginator]Add hidden field ordering for postgresql
2013-06-24 19:23:36 -07:00
Raymond Kolbe
27e23faa5a
Accompanying tests for PR #646
2013-04-10 13:07:09 -03:00
denkiryokuhatsuden
e54c11e3bb
Add test for postgresql hidden scalar sorting
2013-04-03 17:21:51 +09:00
Norbert Orzechowicz
6a69b4700c
[DDC-2282] Fix pagination problem with SQL Server.
...
ORDER BY removed from all count queries when on SQL Server
Fixed SQLServer ORDER BY problem in paginator CountOutputWalker
Added test to check query with ORDER BY and SQLServerPlatform
2013-03-12 19:03:27 +01:00
aleks
206c251090
Add test with mixed sort
2013-01-27 11:40:40 +02:00
aleks
dc190a297d
Fix typo
2013-01-27 11:09:26 +02:00
aleks
6662096ed3
Fix typo
2013-01-26 23:27:38 +02:00
aleks
5e6bc0847f
Added support for order by scalar
2013-01-26 21:31:45 +02:00
aleks
61634950f3
Add test for order by scalar
2013-01-26 21:21:09 +02:00
Miha Vrhovnik
c7a75f477f
The distinct query should replicate the fields in order by clause and the order by clause itself from inner query
...
This fixes DDC-1958
2012-11-12 13:18:46 +01:00
HarmenM
b6b75d3a27
Modified the WhereInWalkerTest to be compatible with a single InputParameter.
2012-11-12 12:30:03 +01:00
Benjamin Eberlei
f55b5411c8
[DDC-1791] Fix OutputWalker Pagination on Oracle
2012-05-27 13:22:48 +02:00
Sander Marechal
43f97a9abc
CountOutputWalker does not need CountWalker::HINT_DISTINCT
2012-03-12 08:39:28 +01:00
Sander Marechal
53ff312936
Renamed *SqlWalker to *OutputWalker
2012-03-12 08:33:35 +01:00
Sander Marechal
c9d962b12a
Fix indentation
2012-03-07 08:57:51 +01:00
Sander Marechal
d2501a9e4a
Throw exception when using the CountWalker with a HAVING query
2012-03-07 08:42:09 +01:00
Sander Marechal
edd5d14b06
Pagination using SQL walkers
...
A CountSqlWalker and LimitSubquerySqlWalker have been implemented. By
default the Paginator will use these SQL walkers. When a query already
uses custom SQL walkers, the Paginator will fall back to the existing
TreeWalker implementations. Improvements:
* Support for more complex DQL queries using named mixed results with
GROUP BY and HAVING. For example:
SELECT g, u, COUNT(u.id) AS userCount
FROM Entity\Group g LEFT JOIN g.users u
GROUP BY g.id
HAVING userCount > 0
* Support for entities with composite primary keys in the CountSqlWalker
and LimitSubquerySqlWalker. Only the WhereInWalker still needs to be
updated for full composite primary key support. But someone smarter
than me needs to look at that and figure out how to build a WHERE IN
query that can select rows based on multiple columns.
2012-03-06 16:24:44 +01:00
Sander Marechal
c6c82efe07
Fixed indentation
2012-01-23 16:11:30 +01:00
Sander Marechal
5dc0081f56
Add support for paginating WHERE NOT ... queries
...
The Pagination tool throws an exception on a DQL query like:
SELECT u FROM User u WHERE NOT (u INSTANCE OF Person)
This is because Paginate does not know about the
Doctrine\ORM\Query\AST\ConditionalFactor which implements the NOT
operator. This patch adds support for that.
2012-01-23 15:42:41 +01:00
Benjamin Eberlei
775071e1ff
[DDC-1613] Merge KnpLabs/Pagerfanta Pagination into a Doctrine\ORM\Tools\Pagination namespace. Thanks to @hobodave, pablo and the knplabs team for developing and maintaining this code.
2012-01-22 13:35:06 +01:00