Commit 3e7723e
committed
fix(integrated): report affected_rows=1 for successful DML queries
execute_query() and execute_prepared() return VoidResult with no row
count. After routing non-SELECT queries away from select_query(), the
empty database_result caused convert_result() to set affected_rows to 0.
Set affected_rows to 1 for successful DML when the backend cannot
provide an exact count.
Fixes CI: IntegratedUnifiedSystemTest (insert/update/remove assertions)1 parent b3517a2 commit 3e7723e
1 file changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
235 | 242 | | |
236 | 243 | | |
237 | 244 | | |
| |||
431 | 438 | | |
432 | 439 | | |
433 | 440 | | |
434 | | - | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
435 | 449 | | |
436 | 450 | | |
437 | 451 | | |
| |||
0 commit comments