forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf7e954a
committed
Rework code using list_delete_cell() in MergeAttributes
When merging two attributes, we are sure that at least one remains.However, when deleting one element in the attribute list we may finishwith an empty list returned as NIL by list_delete_cell(), but the codefailed to track that, which is not project-like. Adjust the call so aswe check for an empty list, and make use of it in an assertion.This has been introduced by e7b3349, when adding support for CREATETABLE OF.Author: Mark DilgerReviewed-by: Álvaro Herrera, Michael PaquierDiscussion:https://postgr.es/m/CAE-h2TpPDqSWgOvfvSziOaMngMPwW+QZcmPpY8hQ_KOJ2+3hXQ@mail.gmail.com1 parent5efd604 commitf7e954a
1 file changed
+7
-1
lines changedLines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2088 | 2088 |
| |
2089 | 2089 |
| |
2090 | 2090 |
| |
2091 |
| - | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
2092 | 2098 |
| |
2093 | 2099 |
| |
2094 | 2100 |
| |
|
0 commit comments
Comments
(0)