mirror of
https://github.com/dg/dibi.git
synced 2025-08-03 20:57:36 +02:00
DibiOdbcDriver: compatible applyLimit
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user