1
0
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:
David Grudl
2008-01-20 01:50:30 +00:00
parent 18e02de80c
commit 89dfa9f772
6 changed files with 77 additions and 36 deletions

View File

@@ -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
);