mirror of
https://github.com/dg/dibi.git
synced 2025-08-12 17:14:16 +02:00
- implemented applyLimit() in PDO driver
This commit is contained in:
@@ -257,7 +257,7 @@ class DibiOdbcDriver 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