1
0
mirror of https://github.com/dg/dibi.git synced 2025-02-21 09:23:57 +01:00
This commit is contained in:
David Grudl 2023-08-09 16:10:02 +02:00
parent cf14987b42
commit a0f2ca2fca
2 changed files with 4 additions and 5 deletions

View File

@ -341,7 +341,7 @@ $database->query('INSERT INTO users', [
There are three methods for dealing with transactions:
```php
$database->beginTransaction();
$database->begin();
$database->commit();

View File

@ -82,10 +82,9 @@ $tests = function ($conn) {
$conn->translate('SELECT 1 %lmt', -10)
);
Assert::exception(
$conn->translate('SELECT 1 %ofs %lmt', 10, 10),
Dibi\NotSupportedException::class
);
Assert::exception(function () {
$conn->translate('SELECT 1 %ofs %lmt', 10, 10);
}, Dibi\NotSupportedException::class);
}
};