diff --git a/dibi/libs/DibiFluent.php b/dibi/libs/DibiFluent.php index 038c1b36..266d954b 100644 --- a/dibi/libs/DibiFluent.php +++ b/dibi/libs/DibiFluent.php @@ -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; diff --git a/tests/dibi/DibiFluent.select.phpt b/tests/dibi/DibiFluent.select.phpt index 1b58a065..dd03bd10 100644 --- a/tests/dibi/DibiFluent.select.phpt +++ b/tests/dibi/DibiFluent.select.phpt @@ -1,5 +1,9 @@