forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdb2d9c6
committed
Fix ExecMakeTableFunctionResult to verify that all rows returned by a SRF
returning "record" actually do have the same rowtype. This is needed becausethe parser can't realistically enforce that they will all have the same typmod,as seen in a recent example from David Wheeler.Back-patch to 8.0, which is as far back as we have the notion of RECORDsubtypes being distinguished by typmod. Wheeler's example depends on8.4-and-up features, but I suspect there may be ways to provoke similarfailures before 8.4.1 parent39ce62b commitdb2d9c6
1 file changed
+11
-1
lines changedLines changed: 11 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
2143 | 2143 |
| |
2144 | 2144 |
| |
2145 | 2145 |
| |
| 2146 | + | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
2146 | 2156 |
| |
2147 | 2157 |
| |
2148 | 2158 |
| |
|
0 commit comments
Comments
(0)