forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf318ee8
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 parent5bd06e6 commitf318ee8
1 file changed
+1
-9
lines changedLines changed: 1 addition & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1430 | 1430 |
| |
1431 | 1431 |
| |
1432 | 1432 |
| |
1433 |
| - | |
| 1433 | + | |
1434 | 1434 |
| |
1435 | 1435 |
| |
1436 |
| - | |
1437 |
| - | |
1438 |
| - | |
1439 |
| - | |
1440 |
| - | |
1441 |
| - | |
1442 |
| - | |
1443 |
| - | |
1444 | 1436 |
| |
1445 | 1437 |
| |
1446 | 1438 |
| |
|
0 commit comments
Comments
(0)