mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 14:16:39 +02:00
- implemented applyLimit() in PDO driver
This commit is contained in:
@@ -247,7 +247,7 @@ class DibiMsSqlDriver extends DibiObject implements IDibiDriver
|
||||
*/
|
||||
public function applyLimit(&$sql, $limit, $offset)
|
||||
{
|
||||
// offset suppot is missing...
|
||||
// offset support is missing
|
||||
if ($limit >= 0) {
|
||||
$sql = 'SELECT TOP ' . (int) $limit . ' * FROM (' . $sql . ')';
|
||||
}
|
||||
|
Reference in New Issue
Block a user