forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb75fbe9
committed
Fix dblink's failure to report correct connection name in error messages.
The DBLINK_GET_CONN and DBLINK_GET_NAMED_CONN macros did not set thesurrounding function's conname variable, causing errors to be incorrectlyreported as having occurred on the "unnamed" connection in some cases.This bug was actually visible in two cases in the regression tests,but apparently whoever added those cases wasn't paying attention.Noted by Kyotaro Horiguchi, though this is different from his proposedpatch.Back-patch to 8.4; 8.3 does not have the same type of error reportingso the patch is not relevant.1 parent566a1d4 commitb75fbe9
2 files changed
+11
-5
lines changedLines changed: 9 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
153 | 153 |
| |
154 | 154 |
| |
155 | 155 |
| |
156 |
| - | |
| 156 | + | |
157 | 157 |
| |
158 | 158 |
| |
| 159 | + | |
159 | 160 |
| |
160 | 161 |
| |
161 | 162 |
| |
| |||
183 | 184 |
| |
184 | 185 |
| |
185 | 186 |
| |
186 |
| - | |
| 187 | + | |
187 | 188 |
| |
188 |
| - | |
| 189 | + | |
189 | 190 |
| |
190 | 191 |
| |
191 | 192 |
| |
| |||
598 | 599 |
| |
599 | 600 |
| |
600 | 601 |
| |
| 602 | + | |
601 | 603 |
| |
602 | 604 |
| |
603 | 605 |
| |
| |||
919 | 921 |
| |
920 | 922 |
| |
921 | 923 |
| |
| 924 | + | |
922 | 925 |
| |
923 | 926 |
| |
924 | 927 |
| |
| |||
945 | 948 |
| |
946 | 949 |
| |
947 | 950 |
| |
| 951 | + | |
948 | 952 |
| |
949 | 953 |
| |
950 | 954 |
| |
| |||
979 | 983 |
| |
980 | 984 |
| |
981 | 985 |
| |
| 986 | + | |
982 | 987 |
| |
983 | 988 |
| |
984 | 989 |
| |
| |||
1488 | 1493 |
| |
1489 | 1494 |
| |
1490 | 1495 |
| |
| 1496 | + | |
1491 | 1497 |
| |
1492 | 1498 |
| |
1493 | 1499 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
371 | 371 |
| |
372 | 372 |
| |
373 | 373 |
| |
374 |
| - | |
| 374 | + | |
375 | 375 |
| |
376 | 376 |
| |
377 | 377 |
| |
| |||
494 | 494 |
| |
495 | 495 |
| |
496 | 496 |
| |
497 |
| - | |
| 497 | + | |
498 | 498 |
| |
499 | 499 |
| |
500 | 500 |
| |
|
0 commit comments
Comments
(0)