1
0
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:
David Grudl
2009-02-08 21:15:54 +00:00
parent 60662bdae1
commit 8df67d0de2
3 changed files with 41 additions and 7 deletions

View File

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