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

DibiFluent: fixed combination of modifier and inner fluent [Closes #192]

This commit is contained in:
David Grudl
2015-11-02 14:48:22 +01:00
parent 84f3a5ddef
commit 411862d5d8
2 changed files with 13 additions and 2 deletions

View File

@@ -141,3 +141,12 @@ Assert::same(
reformat('SELECT * FROM [me] AS [t] WHERE col > 10 AND ([x] = \'a\') AND (b) AND (c)'),
(string) $fluent
);
$fluent = $conn->select('*')->from('abc')
->where('x IN (%SQL)', $conn->select('id')->from('xyz'));
Assert::same(
reformat('SELECT * FROM [abc] WHERE x IN ((SELECT [id] FROM [xyz]))'),
(string) $fluent
);