- Notifications
You must be signed in to change notification settings - Fork5
Commit05dbd4a
committed
Fix plpgsql named-cursor-parameter feature for variable name conflicts.
The parser got confused if a cursor parameter had the same name asa plpgsql variable. Reported and diagnosed by Yeb Havinga, thoughthis isn't exactly his proposed fix.Also, some mostly-but-not-entirely-cosmetic adjustments to the originalnamed-cursor-parameter patch, for code readability and better errordiagnostics.1 parent6f922ef commit05dbd4a
File tree
3 files changed
+56
-17
lines changed- src
- pl/plpgsql/src
- test/regress
- expected
- sql
3 files changed
+56
-17
lines changedLines changed: 22 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3394 | 3394 |
| |
3395 | 3395 |
| |
3396 | 3396 |
| |
3397 |
| - | |
| 3397 | + | |
3398 | 3398 |
| |
3399 | 3399 |
| |
3400 | 3400 |
| |
3401 |
| - | |
| 3401 | + | |
3402 | 3402 |
| |
3403 | 3403 |
| |
3404 | 3404 |
| |
| |||
3417 | 3417 |
| |
3418 | 3418 |
| |
3419 | 3419 |
| |
3420 |
| - | |
3421 |
| - | |
3422 |
| - | |
3423 | 3420 |
| |
3424 | 3421 |
| |
3425 | 3422 |
| |
| |||
3431 | 3428 |
| |
3432 | 3429 |
| |
3433 | 3430 |
| |
| 3431 | + | |
| 3432 | + | |
| 3433 | + | |
3434 | 3434 |
| |
3435 | 3435 |
| |
3436 | 3436 |
| |
| |||
3445 | 3445 |
| |
3446 | 3446 |
| |
3447 | 3447 |
| |
| 3448 | + | |
3448 | 3449 |
| |
3449 |
| - | |
| 3450 | + | |
| 3451 | + | |
| 3452 | + | |
3450 | 3453 |
| |
3451 | 3454 |
| |
| 3455 | + | |
3452 | 3456 |
| |
| 3457 | + | |
3453 | 3458 |
| |
3454 | 3459 |
| |
3455 | 3460 |
| |
| |||
3470 | 3475 |
| |
3471 | 3476 |
| |
3472 | 3477 |
| |
3473 |
| - | |
| 3478 | + | |
3474 | 3479 |
| |
3475 | 3480 |
| |
3476 | 3481 |
| |
3477 | 3482 |
| |
| 3483 | + | |
| 3484 | + | |
| 3485 | + | |
| 3486 | + | |
| 3487 | + | |
| 3488 | + | |
| 3489 | + | |
3478 | 3490 |
| |
3479 | 3491 |
| |
3480 | 3492 |
| |
| |||
3491 | 3503 |
| |
3492 | 3504 |
| |
3493 | 3505 |
| |
| 3506 | + | |
| 3507 | + | |
3494 | 3508 |
| |
3495 | 3509 |
| |
3496 | 3510 |
| |
| |||
3504 | 3518 |
| |
3505 | 3519 |
| |
3506 | 3520 |
| |
3507 |
| - | |
3508 |
| - | |
3509 |
| - | |
3510 |
| - | |
3511 |
| - | |
3512 |
| - | |
3513 |
| - | |
3514 |
| - | |
3515 |
| - | |
3516 | 3521 |
| |
3517 | 3522 |
| |
3518 | 3523 |
| |
| |||
3527 | 3532 |
| |
3528 | 3533 |
| |
3529 | 3534 |
| |
3530 |
| - | |
| 3535 | + | |
3531 | 3536 |
| |
3532 | 3537 |
| |
3533 | 3538 |
| |
|
Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2420 | 2420 |
| |
2421 | 2421 |
| |
2422 | 2422 |
| |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
2423 | 2442 |
| |
2424 | 2443 |
| |
2425 | 2444 |
| |
|
Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2053 | 2053 |
| |
2054 | 2054 |
| |
2055 | 2055 |
| |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
2056 | 2071 |
| |
2057 | 2072 |
| |
2058 | 2073 |
| |
|
0 commit comments
Comments
(0)