mirror of
https://github.com/dg/dibi.git
synced 2025-02-24 10:53:17 +01:00
MSSQL driver: Added subselect alias in applyLimit.
This commit is contained in:
parent
b00257c6b0
commit
22b62ee9a5
@ -256,7 +256,7 @@ class DibiMsSqlDriver extends DibiObject implements IDibiDriver
|
||||
{
|
||||
// offset support is missing
|
||||
if ($limit >= 0) {
|
||||
$sql = 'SELECT TOP ' . (int) $limit . ' * FROM (' . $sql . ')';
|
||||
$sql = 'SELECT TOP ' . (int) $limit . ' * FROM (' . $sql . ') t';
|
||||
}
|
||||
|
||||
if ($offset) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user