forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb434951
committed
Fix a thinko in my patch of a couple months ago for bug #3116: it did the
wrong thing when inlining polymorphic SQL functions, because it was using thefunction's declared return type where it should have used the actual resulttype of the current call. In 8.1 and 8.2 this causes obvious failures even ifyou don't have assertions turned on; in 8.0 and 7.4 it would only be a problemif the inlined expression were used as an input to a function that didrun-time type determination on its inputs. Add a regression test, since thisis evidently an under-tested area.1 parentc432061 commitb434951
File tree
3 files changed
+55
-4
lines changed- src
- backend/optimizer/util
- test/regress
- expected
- sql
3 files changed
+55
-4
lines changedLines changed: 4 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 |
| |
| |||
3063 | 3063 |
| |
3064 | 3064 |
| |
3065 | 3065 |
| |
3066 |
| - | |
| 3066 | + | |
3067 | 3067 |
| |
3068 |
| - | |
| 3068 | + | |
3069 | 3069 |
| |
3070 |
| - | |
| 3070 | + | |
3071 | 3071 |
| |
3072 | 3072 |
| |
3073 | 3073 |
| |
|
Lines changed: 35 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
542 | 542 |
| |
543 | 543 |
| |
544 | 544 |
| |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + |
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
374 | 374 |
| |
375 | 375 |
| |
376 | 376 |
| |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + |
0 commit comments
Comments
(0)