forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit63a03ae
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 parent94d73f9 commit63a03ae
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1553 | 1553 |
| |
1554 | 1554 |
| |
1555 | 1555 |
| |
1556 |
| - | |
1557 |
| - | |
1558 |
| - | |
| 1556 | + | |
1559 | 1557 |
| |
1560 | 1558 |
| |
| 1559 | + | |
| 1560 | + | |
1561 | 1561 |
| |
1562 | 1562 |
| |
1563 | 1563 |
| |
|
0 commit comments
Comments
(0)