- Notifications
You must be signed in to change notification settings - Fork28
Commit7ad33ce
committed
Rearrange use of plpgsql_add_initdatums() so that only the parsing of a
DECLARE section needs to know about it. Formerly, everyplace besides DECLAREthat created variables needed to do "plpgsql_add_initdatums(NULL)" to preventthose variables from being sucked up as part of a subsequent DECLARE block.This is obviously error-prone, and in fact the SQLSTATE/SQLERRM patch hadfailed to do it for those two variables, leading to the bug recently exhibitedby Asif Ali Rehman: a DECLARE within an exception handler tried to reinitializeSQLERRM.Although the SQLSTATE/SQLERRM patch isn't in any pre-8.1 branches, and soI can't point to a demonstrable failure there, it seems wise to back-patchthis into the older branches anyway, just to keep the logic similar to HEAD.1 parentb577aa9 commit7ad33ce
2 files changed
+17
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
276 | 275 | | |
277 | 276 | | |
278 | 277 | | |
279 | 278 | | |
280 | 279 | | |
281 | 280 | | |
282 | 281 | | |
283 | | - | |
284 | 282 | | |
285 | 283 | | |
286 | 284 | | |
| |||
289 | 287 | | |
290 | 288 | | |
291 | 289 | | |
| 290 | + | |
292 | 291 | | |
293 | 292 | | |
294 | 293 | | |
295 | 294 | | |
296 | 295 | | |
297 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
298 | 300 | | |
299 | 301 | | |
300 | 302 | | |
| |||
990 | 992 | | |
991 | 993 | | |
992 | 994 | | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | 995 | | |
997 | 996 | | |
998 | 997 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
666 | 666 | | |
667 | 667 | | |
668 | 668 | | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | 669 | | |
675 | 670 | | |
676 | 671 | | |
| |||
1893 | 1888 | | |
1894 | 1889 | | |
1895 | 1890 | | |
1896 | | - | |
1897 | | - | |
1898 | | - | |
1899 | | - | |
1900 | | - | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
1901 | 1902 | | |
1902 | 1903 | | |
1903 | 1904 | | |
| |||
0 commit comments
Comments
(0)