mirror of
https://github.com/dg/dibi.git
synced 2025-08-12 09:04:24 +02:00
Translator: DateTime can be used only with %d or %t modifiers (BC break?)
This commit is contained in:
@@ -190,6 +190,11 @@ Assert::same(
|
||||
'b9%t' => NULL,
|
||||
]));
|
||||
|
||||
Assert::exception(function () use ($conn) {
|
||||
$conn->translate('SELECT %s', new DateTime('1212-09-26'));
|
||||
}, 'Dibi\Exception', 'SQL translate error: Invalid combination of type Dibi\DateTime and modifier %s');
|
||||
|
||||
|
||||
|
||||
|
||||
// like
|
||||
|
Reference in New Issue
Block a user