mirror of
https://github.com/dg/dibi.git
synced 2025-08-04 05:07:36 +02:00
fixed bug in conditional SQL
This commit is contained in:
@@ -68,7 +68,7 @@ class DibiDataSource extends NObject implements IDataSource
|
||||
public function getIterator($offset = NULL, $limit = NULL, $cols = NULL)
|
||||
{
|
||||
return $this->connection->query('
|
||||
SELECT %n', ($cols === NULL ? '*' : $cols), '
|
||||
SELECT *
|
||||
FROM', $this->sql, '
|
||||
%ofs %lmt', $offset, $limit
|
||||
);
|
||||
|
Reference in New Issue
Block a user