forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbd8fe12
committed
Relocate a badly placed Assert in COPY FROM code
There's not much point in asserting a pointer isn't NULL after some codehas already dereferenced that pointer.Adjust the code so that the Assert occurs before the pointer dereference.The Assert probably has questionable value in the first place, but itseems worth keeping around to document the contract betweenCopyMultiInsertInfoNextFreeSlot() and its callers.Author: Amul Sul <sulamul@gmail.com>Discussion:https://postgr.es/m/CAAJ_b94hXQzXaJxTLShkxQUgezf_SUxhzX9TH2f-g6gP7bne7g@mail.gmail.com1 parent1d80d6b commitbd8fe12
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
597 | 597 |
| |
598 | 598 |
| |
599 | 599 |
| |
600 |
| - | |
| 600 | + | |
601 | 601 |
| |
602 | 602 |
| |
603 |
| - | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
604 | 606 |
| |
605 | 607 |
| |
606 | 608 |
| |
|
0 commit comments
Comments
(0)