@@ -662,7 +653,7 @@ class MsSqlPlatform extends AbstractPlatform
...
@@ -662,7 +653,7 @@ class MsSqlPlatform extends AbstractPlatform
$query=preg_replace('/^SELECT\s/','',$query);
$query=preg_replace('/^SELECT\s/','',$query);
$start=$offset+1;
$start=$offset+1;
$end=$offset+$count;
$end=$offset+$limit;
$query="SELECT * FROM (SELECT ROW_NUMBER() OVER ($over) AS \"doctrine_rownum\", $query) AS doctrine_tbl WHERE \"doctrine_rownum\" BETWEEN $start AND $end";
$query="SELECT * FROM (SELECT ROW_NUMBER() OVER ($over) AS \"doctrine_rownum\", $query) AS doctrine_tbl WHERE \"doctrine_rownum\" BETWEEN $start AND $end";
}
}
...
@@ -671,6 +662,14 @@ class MsSqlPlatform extends AbstractPlatform
...
@@ -671,6 +662,14 @@ class MsSqlPlatform extends AbstractPlatform
return$query;
return$query;
}
}
/**
* @override
*/
publicfunctionsupportsLimitOffset()
{
returnfalse;
}
/**
/**
* @override
* @override
*/
*/
...
@@ -753,7 +752,6 @@ class MsSqlPlatform extends AbstractPlatform
...
@@ -753,7 +752,6 @@ class MsSqlPlatform extends AbstractPlatform