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:
@@ -290,7 +290,7 @@ class DibiOdbcDriver extends DibiObject implements IDibiDriver, IDibiResultDrive
|
|||||||
{
|
{
|
||||||
// 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) {
|
||||||
|
Reference in New Issue
Block a user