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

- Oracle driver: implemented applyLimit() & getTables()

- DibiDataSource: removed key word AS
- DibiProfiler: fixed bug with unbuffered queries
- DibiTranslator: empty %and generates '1=1'
This commit is contained in:
David Grudl
2009-04-26 15:35:39 +00:00
parent 6589519419
commit 98d43e0815
4 changed files with 29 additions and 7 deletions

View File

@@ -210,7 +210,7 @@ final class DibiTranslator extends DibiObject
case 'and':
case 'or': // key=val AND key IS NULL AND ...
if (empty($value)) {
return $this->driver->escape(TRUE, 'b');
return '1=1';
}
foreach ($value as $k => $v) {