forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit88a4cb3
committed
Fix GET DIAGNOSTICS for case of assignment to function's first variable.
An incorrect and entirely unnecessary "safety check" in exec_stmt_getdiag()caused the code to treat an assignment to a variable with dno zero as ano-op. Unfortunately, that's a perfectly valid dno. This has been brokensince GET DIAGNOSTICS was invented. It's not terribly surprising that thebug went unnoticed for so long, since in most cases you probably wouldn'tuse the function's first-created variable (normally its first parameter)as a GET DIAGNOSTICS target. Nonetheless, it's broken. Per bug #6551from Adam Buraczewski.1 parente9ce658 commit88a4cb3
1 file changed
+1
-9
lines changedLines changed: 1 addition & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1447 | 1447 |
| |
1448 | 1448 |
| |
1449 | 1449 |
| |
1450 |
| - | |
| 1450 | + | |
1451 | 1451 |
| |
1452 | 1452 |
| |
1453 |
| - | |
1454 |
| - | |
1455 |
| - | |
1456 |
| - | |
1457 |
| - | |
1458 |
| - | |
1459 |
| - | |
1460 |
| - | |
1461 | 1453 |
| |
1462 | 1454 |
| |
1463 | 1455 |
| |
|
0 commit comments
Comments
(0)