1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-04 05:07:36 +02:00

DibiOdbcDriver: compatible applyLimit

This commit is contained in:
David Grudl
2015-01-12 04:00:51 +01:00
parent e2fe4d122e
commit ddbf8c779e

View File

@@ -290,7 +290,7 @@ class DibiOdbcDriver extends DibiObject implements IDibiDriver, IDibiResultDrive
{
// offset support is missing
if ($limit >= 0) {
$sql = 'SELECT TOP ' . (int) $limit . ' * FROM (' . $sql . ')';
$sql = 'SELECT TOP ' . (int) $limit . ' * FROM (' . $sql . ') t';
}
if ($offset) {