mirror of
https://github.com/dg/dibi.git
synced 2025-08-13 17:44:11 +02:00
Translator: Literal can be used with %sql or %SQL modifiers
This commit is contained in:
@@ -519,6 +519,10 @@ Assert::same(
|
||||
$conn->translate('SELECT', new Dibi\Literal('* FROM table'))
|
||||
);
|
||||
|
||||
Assert::same(
|
||||
reformat('SELECT * FROM table'),
|
||||
$conn->translate('SELECT %SQL', new Dibi\Literal('* FROM table'))
|
||||
);
|
||||
|
||||
Assert::same(
|
||||
reformat('SELECT * FROM table'),
|
||||
|
Reference in New Issue
Block a user