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:
@@ -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
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user