mirror of
https://github.com/dg/dibi.git
synced 2025-08-19 04:11:44 +02:00
Connection::query() and Fluent::execute() always return Result, not the number of affected rows (BC break)
This commit is contained in:
@@ -54,4 +54,6 @@ if (!in_array($config['system'], ['odbc', 'sqlsrv'], true)) {
|
||||
|
||||
// affected rows
|
||||
$res = $conn->update('products', ['title' => 'new'])->execute();
|
||||
Assert::same(3, $res);
|
||||
Assert::same(3, $res->getRowCount());
|
||||
Assert::same(0, $res->getColumnCount());
|
||||
Assert::same(3, $conn->getAffectedRows());
|
||||
|
Reference in New Issue
Block a user