forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1571bc0
committed
Fix incorrect strictness test for ArrayCoerceExpr expressions.
The recursion in contain_nonstrict_functions_walker() was done wrong,causing the strictness check to be bypassed for a parse node thatis the immediate input of an ArrayCoerceExpr node. This could allow,for example, incorrect decisions about whether a strict SQL functioncan be inlined.I didn't add a regression test, because (a) the bug is so narrowand (b) I couldn't think of a test case that wasn't dependent on alarge number of other behaviors, to the point where it would likelysoon rot to the point of not testing what it was intended to.I broke this in commitc12d570, so back-patch to v11.Discussion:https://postgr.es/m/27571.1550617881@sss.pgh.pa.us1 parent5721b9b commit1571bc0
1 file changed
+2
-3
lines changedLines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1179 | 1179 |
| |
1180 | 1180 |
| |
1181 | 1181 |
| |
1182 |
| - | |
1183 |
| - | |
1184 |
| - | |
| 1182 | + | |
| 1183 | + | |
1185 | 1184 |
| |
1186 | 1185 |
| |
1187 | 1186 |
| |
|
0 commit comments
Comments
(0)