mirror of
https://github.com/dg/dibi.git
synced 2025-08-25 15:01:29 +02:00
- fixed bug in DibiDataSource
- added DibiDataSource::getTotalCount() - PostgreSql compatibility
This commit is contained in:
@@ -202,7 +202,7 @@ final class DibiTranslator extends DibiObject
|
||||
case 'and':
|
||||
case 'or': // key=val AND key IS NULL AND ...
|
||||
if (empty($value)) {
|
||||
return '1';
|
||||
return $this->driver->escape(TRUE, 'b');
|
||||
}
|
||||
|
||||
foreach ($value as $k => $v) {
|
||||
@@ -265,7 +265,7 @@ final class DibiTranslator extends DibiObject
|
||||
|
||||
case 'by': // key ASC, key DESC
|
||||
if (empty($value)) {
|
||||
return '1';
|
||||
return $this->driver->escape(TRUE, 'b');
|
||||
}
|
||||
|
||||
foreach ($value as $k => $v) {
|
||||
|
Reference in New Issue
Block a user