1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-10 16:14:57 +02: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: There are three methods for dealing with transactions:
```php ```php
$database->beginTransaction(); $database->begin();
$database->commit(); $database->commit();

View File

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