diff --git a/src/Dibi/Fluent.php b/src/Dibi/Fluent.php index e0ae70a5..90e9f924 100644 --- a/src/Dibi/Fluent.php +++ b/src/Dibi/Fluent.php @@ -415,7 +415,7 @@ class Fluent implements IDataSource /** - * @return Result + * @return Result|int */ private function query($args) { diff --git a/tests/dibi/Fluent.fetch.phpt b/tests/dibi/Fluent.fetch.phpt index 0ed4e99b..51dbb122 100644 --- a/tests/dibi/Fluent.fetch.phpt +++ b/tests/dibi/Fluent.fetch.phpt @@ -48,3 +48,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);