1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 14:16:39 +02:00

MSSQL driver: Added subselect alias in applyLimit.

This commit is contained in:
Jan Vlcek
2009-10-02 21:26:03 +08:00
committed by David Grudl
parent b00257c6b0
commit 22b62ee9a5

View File

@@ -256,7 +256,7 @@ class DibiMsSqlDriver extends DibiObject implements IDibiDriver
{ {
// 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 . ') t';
} }
if ($offset) { if ($offset) {