forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit94136d5
committed
Add new SPI_OK_REWRITTEN return code to SPI_execute and friends, for the
case that the command is rewritten into another type of command. The oldbehavior to return the command tag of the last executed command waspretty surprising. In PL/pgSQL, for example, it meant that if a commandwas rewritten to a utility statement, FOUND wasn't set at all.1 parent0154345 commit94136d5
4 files changed
+36
-16
lines changedLines changed: 11 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
527 | 527 |
| |
528 | 528 |
| |
529 | 529 |
| |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
530 | 540 |
| |
531 | 541 |
| |
532 | 542 |
| |
|
Lines changed: 7 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1490 | 1490 |
| |
1491 | 1491 |
| |
1492 | 1492 |
| |
| 1493 | + | |
| 1494 | + | |
1493 | 1495 |
| |
1494 | 1496 |
| |
1495 | 1497 |
| |
| |||
1910 | 1912 |
| |
1911 | 1913 |
| |
1912 | 1914 |
| |
1913 |
| - | |
1914 |
| - | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
1915 | 1918 |
| |
1916 | 1919 |
| |
1917 |
| - | |
| 1920 | + | |
1918 | 1921 |
| |
1919 | 1922 |
| |
1920 | 1923 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
| 59 | + | |
59 | 60 |
| |
60 | 61 |
| |
61 | 62 |
| |
|
Lines changed: 16 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
2782 | 2782 |
| |
2783 | 2783 |
| |
2784 | 2784 |
| |
2785 |
| - | |
2786 |
| - | |
2787 |
| - | |
2788 |
| - | |
2789 |
| - | |
2790 |
| - | |
2791 |
| - | |
2792 |
| - | |
2793 |
| - | |
| 2785 | + | |
| 2786 | + | |
2794 | 2787 |
| |
2795 | 2788 |
| |
2796 | 2789 |
| |
2797 | 2790 |
| |
| 2791 | + | |
2798 | 2792 |
| |
2799 | 2793 |
| |
2800 | 2794 |
| |
| |||
2804 | 2798 |
| |
2805 | 2799 |
| |
2806 | 2800 |
| |
| 2801 | + | |
2807 | 2802 |
| |
2808 | 2803 |
| |
2809 | 2804 |
| |
2810 | 2805 |
| |
2811 | 2806 |
| |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
| 2814 | + | |
| 2815 | + | |
| 2816 | + | |
| 2817 | + | |
2812 | 2818 |
| |
2813 | 2819 |
| |
2814 | 2820 |
| |
|
0 commit comments
Comments
(0)