Commit 9d07107
fix: DGET multiple-match check takes priority over field CellError
The defensive CellError guard added earlier returned the error as soon
as a matching row with a field error was seen, even when more rows
also matched. Excel's DGET resolves the "multiple matches → #NUM!"
check first and only surfaces field errors when exactly one record
matches.
Move the CellError check to after the loop so the match count is
finalised first. Addresses Cursor Bugbot finding.
Regression tests added in hyperformula-tests.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 42d5e09 commit 9d07107
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | 240 | | |
245 | 241 | | |
246 | 242 | | |
247 | 243 | | |
248 | | - | |
| 244 | + | |
249 | 245 | | |
250 | 246 | | |
251 | 247 | | |
252 | 248 | | |
253 | 249 | | |
254 | 250 | | |
255 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
0 commit comments