forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc1008f0
committed
Check number of parameters in RAISE statement at compile time.
The number of % parameter markers in RAISE statement should match the numberof parameters given. We used to check that at execution time, but we haveall the information needed at compile time, so let's check it at compiletime instead. It's generally better to find mistakes earlier.Marko Tiikkaja, reviewed by Fabien Coelho1 parentf8f4227 commitc1008f0
File tree
5 files changed
+68
-17
lines changed- doc/src/sgml
- src
- pl/plpgsql/src
- test/regress
- expected
- sql
5 files changed
+68
-17
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3403 | 3403 |
| |
3404 | 3404 |
| |
3405 | 3405 |
| |
| 3406 | + | |
| 3407 | + | |
| 3408 | + | |
3406 | 3409 |
| |
3407 | 3410 |
| |
3408 | 3411 |
| |
|
Lines changed: 4 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2939 | 2939 |
| |
2940 | 2940 |
| |
2941 | 2941 |
| |
| 2942 | + | |
2942 | 2943 |
| |
2943 |
| - | |
2944 |
| - | |
2945 |
| - | |
| 2944 | + | |
2946 | 2945 |
| |
2947 | 2946 |
| |
2948 | 2947 |
| |
| |||
2963 | 2962 |
| |
2964 | 2963 |
| |
2965 | 2964 |
| |
2966 |
| - | |
2967 |
| - | |
2968 |
| - | |
2969 |
| - | |
| 2965 | + | |
2970 | 2966 |
| |
2971 |
| - | |
2972 |
| - | |
2973 |
| - | |
| 2967 | + | |
2974 | 2968 |
| |
2975 | 2969 |
| |
2976 | 2970 |
| |
|
Lines changed: 38 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
| 109 | + | |
109 | 110 |
| |
110 | 111 |
| |
111 | 112 |
| |
| |||
1849 | 1850 |
| |
1850 | 1851 |
| |
1851 | 1852 |
| |
| 1853 | + | |
| 1854 | + | |
1852 | 1855 |
| |
1853 | 1856 |
| |
1854 | 1857 |
| |
| |||
3767 | 3770 |
| |
3768 | 3771 |
| |
3769 | 3772 |
| |
| 3773 | + | |
| 3774 | + | |
| 3775 | + | |
| 3776 | + | |
| 3777 | + | |
| 3778 | + | |
| 3779 | + | |
| 3780 | + | |
| 3781 | + | |
| 3782 | + | |
| 3783 | + | |
| 3784 | + | |
| 3785 | + | |
| 3786 | + | |
| 3787 | + | |
| 3788 | + | |
| 3789 | + | |
| 3790 | + | |
| 3791 | + | |
| 3792 | + | |
| 3793 | + | |
| 3794 | + | |
| 3795 | + | |
| 3796 | + | |
| 3797 | + | |
| 3798 | + | |
| 3799 | + | |
| 3800 | + | |
| 3801 | + | |
| 3802 | + | |
| 3803 | + | |
| 3804 | + | |
| 3805 | + | |
| 3806 | + | |
| 3807 | + | |
3770 | 3808 |
| |
3771 | 3809 |
| |
3772 | 3810 |
| |
|
Lines changed: 15 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2446 | 2446 |
| |
2447 | 2447 |
| |
2448 | 2448 |
| |
2449 |
| - | |
2450 | 2449 |
| |
2451 |
| - | |
| 2450 | + | |
2452 | 2451 |
| |
2453 | 2452 |
| |
2454 | 2453 |
| |
2455 | 2454 |
| |
2456 | 2455 |
| |
2457 | 2456 |
| |
2458 |
| - | |
2459 | 2457 |
| |
2460 |
| - | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
2461 | 2472 |
| |
2462 | 2473 |
| |
2463 | 2474 |
| |
|
Lines changed: 8 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2078 | 2078 |
| |
2079 | 2079 |
| |
2080 | 2080 |
| |
2081 |
| - | |
2082 |
| - | |
2083 | 2081 |
| |
2084 | 2082 |
| |
2085 | 2083 |
| |
2086 | 2084 |
| |
2087 | 2085 |
| |
2088 | 2086 |
| |
2089 | 2087 |
| |
2090 |
| - | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
2091 | 2096 |
| |
2092 | 2097 |
| |
2093 | 2098 |
| |
|
0 commit comments
Comments
(0)