forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7bdf9b8
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 parent3bf25a2 commit7bdf9b8
1 file changed
+1
-9
lines changedLines changed: 1 addition & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1418 | 1418 |
| |
1419 | 1419 |
| |
1420 | 1420 |
| |
1421 |
| - | |
| 1421 | + | |
1422 | 1422 |
| |
1423 | 1423 |
| |
1424 |
| - | |
1425 |
| - | |
1426 |
| - | |
1427 |
| - | |
1428 |
| - | |
1429 |
| - | |
1430 |
| - | |
1431 |
| - | |
1432 | 1424 |
| |
1433 | 1425 |
| |
1434 | 1426 |
| |
|
0 commit comments
Comments
(0)