- Notifications
You must be signed in to change notification settings - Fork5
Commitadd0ea8
committed
Fix aboriginal mistake in plpython's set-returning-function support.
We must stay in the function's SPI context until done calling the iteratorthat returns the set result. Otherwise, any attempt to invoke SPI featuresin the python code called by the iterator will malfunction. Diagnosis andpatch by Jan Urbanski, per bug report from Jean-Baptiste Quenot.Back-patch to 8.2; there was no support for SRFs in previous versions ofplpython.1 parent3134d88 commitadd0ea8
File tree
3 files changed
+48
-8
lines changed- src/pl/plpython
- expected
- sql
3 files changed
+48
-8
lines changedLines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
34 | 42 |
| |
35 | 43 |
| |
36 | 44 |
| |
| |||
107 | 115 |
| |
108 | 116 |
| |
109 | 117 |
| |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + |
Lines changed: 20 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
985 | 985 |
| |
986 | 986 |
| |
987 | 987 |
| |
988 |
| - | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
989 | 992 |
| |
990 | 993 |
| |
991 | 994 |
| |
| |||
1000 | 1003 |
| |
1001 | 1004 |
| |
1002 | 1005 |
| |
1003 |
| - | |
1004 |
| - | |
1005 |
| - | |
1006 |
| - | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
1007 | 1009 |
| |
1008 |
| - | |
1009 |
| - | |
1010 |
| - | |
1011 | 1010 |
| |
1012 | 1011 |
| |
1013 | 1012 |
| |
| |||
1064 | 1063 |
| |
1065 | 1064 |
| |
1066 | 1065 |
| |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
1067 | 1070 |
| |
1068 | 1071 |
| |
1069 | 1072 |
| |
1070 | 1073 |
| |
1071 | 1074 |
| |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
1072 | 1084 |
| |
1073 | 1085 |
| |
1074 | 1086 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
38 | 47 |
| |
39 | 48 |
| |
40 | 49 |
| |
| |||
51 | 60 |
| |
52 | 61 |
| |
53 | 62 |
| |
| 63 | + | |
| 64 | + |
0 commit comments
Comments
(0)