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

DibiFluent: prevents doubled processing

This commit is contained in:
David Grudl
2015-10-26 14:29:03 +01:00
parent 9100f94b8f
commit 1c3ef5f5cf
2 changed files with 5 additions and 0 deletions

View File

@@ -187,6 +187,7 @@ class DibiFluent extends DibiObject implements IDataSource
foreach ($args as $arg) {
if ($arg instanceof self) {
$this->cursor[] = '%SQL';
$arg = "($arg)";
}
$this->cursor[] = $arg;

View File

@@ -1,5 +1,9 @@
<?php
/**
* @dataProvider ../databases.ini
*/
use Tester\Assert;
require __DIR__ . '/bootstrap.php';