Commit 350fe31
authored
sa: check for sql.ErrNoRows on Get() (#8732)
This pulls in the latest borp, including
letsencrypt/borp#13, which makes `Get()` return
`sql.ErrNoRows` instead of a `nil` object.
This fixes the lagFactor check in `sa.GetAuthorization2`, which was
expecting `sql.ErrNoRows` but never received it (because `Get()` was
returning `nil, nil`). `GetAuthorization2` is not touched in this PR
because we're updating the dependency to match its existing behavior.
Change the behavior of all the other SA calls to `Get()` to look for
`sql.ErrNoRows` instead of `obj == nil`.1 parent 4ea4524 commit 350fe31
7 files changed
Lines changed: 17 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
| 154 | + | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
353 | 356 | | |
354 | 357 | | |
355 | 358 | | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
540 | 543 | | |
541 | 544 | | |
542 | 545 | | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | 586 | | |
590 | | - | |
| 587 | + | |
591 | 588 | | |
592 | 589 | | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
0 commit comments