- Notifications
You must be signed in to change notification settings - Fork5
Commit6734182
committed
Teach eval_const_expressions() to simplify an ArrayCoerceExpr to a constant
when its input is constant and the element coercion function is immutable(or nonexistent, ie, binary-coercible case). This is an oversight in the8.3 implementation of ArrayCoerceExpr, and its result is that certain casesinvolving IN or NOT IN with constants don't get optimized as they should be.Per experimentation with an example from Ow Mun Heng.1 parent6741688 commit6734182
1 file changed
+36
-1
lines changedLines changed: 36 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 |
| |
| |||
2359 | 2359 |
| |
2360 | 2360 |
| |
2361 | 2361 |
| |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
| 2376 | + | |
| 2377 | + | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
| 2392 | + | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
2362 | 2397 |
| |
2363 | 2398 |
| |
2364 | 2399 |
| |
|
0 commit comments
Comments
(0)