forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb56b83a
committed
Simplify some code in getObjectTypeDescription()
This routine is designed to never return an empty description or NULL,providing description fallbacks even if missing objects are accepted,but it included a code path where this was considered possible. All thecallers of this routine already consider NULL as not possible, sochange a bit the code to map with the assumptions of the callers, andadd more comments close to the callers of this routine to outline thebehavior expected.This code is new as of2a10fdc, so no backpatch is needed.Discussion:https://postgr.es/m/YMNY6RGPBRCeLmFb@paquier.xyz1 parentbfd96b7 commitb56b83a
1 file changed
+3
-4
lines changedLines changed: 3 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4278 | 4278 |
| |
4279 | 4279 |
| |
4280 | 4280 |
| |
4281 |
| - | |
| 4281 | + | |
4282 | 4282 |
| |
4283 | 4283 |
| |
4284 | 4284 |
| |
| |||
4490 | 4490 |
| |
4491 | 4491 |
| |
4492 | 4492 |
| |
4493 |
| - | |
4494 |
| - | |
4495 |
| - | |
| 4493 | + | |
| 4494 | + | |
4496 | 4495 |
| |
4497 | 4496 |
| |
4498 | 4497 |
| |
|
0 commit comments
Comments
(0)