1
0
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:
David Grudl
2008-11-07 10:47:57 +00:00
parent d08a5d3856
commit 9f8b19f1fb
4 changed files with 32 additions and 4 deletions

View File

@@ -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 . ')';
}