forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite35ded2
committed
Fix list_copy_head() with empty Lists
list_copy_head() given an empty List would crash from trying todereference the List to obtain its length. Since NIL is how we representan empty List, we should just be returning another empty List in thiscase.list_copy_head() is new to v16, so let's fix it now before too many peoplestart coding around the buggy NIL behavior.Reported-by: Miroslav BendikDiscussion:https://postgr.es/m/CAPoEpV02WhawuWnmnKet6BqU63bEu7oec0pJc=nKMtPsHMzTXQ@mail.gmail.com1 parent2584639 commite35ded2
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1593 | 1593 |
| |
1594 | 1594 |
| |
1595 | 1595 |
| |
1596 |
| - | |
1597 |
| - | |
1598 |
| - | |
| 1596 | + | |
1599 | 1597 |
| |
1600 | 1598 |
| |
| 1599 | + | |
| 1600 | + | |
1601 | 1601 |
| |
1602 | 1602 |
| |
1603 | 1603 |
| |
|
0 commit comments
Comments
(0)