mirror of
https://github.com/dg/dibi.git
synced 2025-08-07 14:46:50 +02:00
Fluent: fixed phpDoc, query() may return Result|int
This commit is contained in:
committed by
David Grudl
parent
9486b65b84
commit
d4b87490a1
@@ -415,7 +415,7 @@ class Fluent implements IDataSource
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Result
|
* @return Result|int
|
||||||
*/
|
*/
|
||||||
private function query($args)
|
private function query($args)
|
||||||
{
|
{
|
||||||
|
@@ -48,3 +48,8 @@ if (!in_array($config['system'], ['odbc', 'sqlsrv'], true)) {
|
|||||||
],
|
],
|
||||||
], $res->fetchAssoc('name,title'));
|
], $res->fetchAssoc('name,title'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// affected rows
|
||||||
|
$res = $conn->update('products', ['title' => 'new'])->execute();
|
||||||
|
Assert::same(3, $res);
|
||||||
|
Reference in New Issue
Block a user