1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-12 00:54:11 +02:00

- DibiDataSource: fixed empty ORDER BY

- DibiTranslator: removed empty %by handling 
- DibiTranslator: better NULL values handling
This commit is contained in:
David Grudl
2009-03-08 17:36:11 +00:00
parent 5c2245a9d7
commit 7969289aaa
2 changed files with 12 additions and 15 deletions

View File

@@ -294,7 +294,7 @@ class DibiDataSource extends DibiObject implements IDataSource
SELECT %n', (empty($this->cols) ? '*' : $this->cols), '
FROM %SQL', $this->sql, '
WHERE %and', $this->conds, '
ORDER BY %by', $this->sorting, '
%ex', $this->sorting ? array('ORDER BY %by', $this->sorting) : NULL, '
%ofs %lmt', $this->offset, $this->limit
);
}