mirror of
https://github.com/dg/dibi.git
synced 2025-08-12 09:04:24 +02:00
Fluent: fixed TypeError, query() may return Result|int
This commit is contained in:
committed by
David Grudl
parent
9eb0f1422c
commit
f29f52eb28
@@ -50,3 +50,8 @@ if (!in_array($config['system'], ['odbc', 'sqlsrv'], true)) {
|
||||
],
|
||||
], $res->fetchAssoc('name,title'));
|
||||
}
|
||||
|
||||
|
||||
// affected rows
|
||||
$res = $conn->update('products', ['title' => 'new'])->execute();
|
||||
Assert::same(3, $res);
|
||||
|
Reference in New Issue
Block a user