Commit e64c76db authored by James Titcumb's avatar James Titcumb

Change order of parameters in doModifyLimitQuery to work with Migrations

Conflicts:
	lib/Doctrine/DBAL/Platforms/DB2iSeriesPlatform.php
parent eb487974
...@@ -749,7 +749,7 @@ class DB2Platform extends AbstractPlatform ...@@ -749,7 +749,7 @@ class DB2Platform extends AbstractPlatform
$offset = (int) (($offset)?:0); $offset = (int) (($offset)?:0);
// Todo OVER() needs ORDER BY data! // Todo OVER() needs ORDER BY data!
$sql = 'SELECT db22.* FROM (SELECT ROW_NUMBER() OVER() AS DC_ROWNUM, db21.* '. $sql = 'SELECT db22.* FROM (SELECT db21.*, ROW_NUMBER() OVER() AS DC_ROWNUM '.
'FROM (' . $query . ') db21) db22 WHERE db22.DC_ROWNUM BETWEEN ' . ($offset+1) .' AND ' . ($offset+$limit); 'FROM (' . $query . ') db21) db22 WHERE db22.DC_ROWNUM BETWEEN ' . ($offset+1) .' AND ' . ($offset+$limit);
return $sql; return $sql;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment