mirror of
https://github.com/dg/dibi.git
synced 2025-08-05 21:58:10 +02:00
MSSQL2005 applyLimit fixed
Conflicts: dibi/drivers/mssql2005.php dibi/drivers/mssql2005.reflector.php
This commit is contained in:
committed by
David Grudl
parent
10fdecfc13
commit
16b254fce1
@@ -300,7 +300,7 @@ class DibiMsSql2005Driver extends DibiObject implements IDibiDriver, IDibiResult
|
|||||||
{
|
{
|
||||||
// offset support is missing
|
// offset support is missing
|
||||||
if ($limit >= 0) {
|
if ($limit >= 0) {
|
||||||
$sql = 'SELECT TOP ' . (int) $limit . ' * FROM (' . $sql . ')';
|
$sql = 'SELECT TOP ' . (int) $limit . ' * FROM (' . $sql . ') AS T ';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($offset) {
|
if ($offset) {
|
||||||
|
Reference in New Issue
Block a user