1
0
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:
Daniel Kouba
2012-12-11 16:13:37 +01:00
committed by David Grudl
parent 10fdecfc13
commit 16b254fce1

View File

@@ -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) {