forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit45f2c2f
committed
Need to special-case RECORD as well as UNKNOWN in plpgsql's casting logic.
This is because can_coerce_type thinks that RECORD can be cast to anycomposite type, but coerce_record_to_complex only works for inputs that areRowExprs or whole-row Vars, so we get a hard failure on a CaseTestExpr.Perhaps these corner cases ought to be fixed so that coerce_to_target_typeactually returns NULL as per its specification, rather than failing ...but for the moment an extra check here is the path of least resistance.1 parent1345cc6 commit45f2c2f
1 file changed
+5
-4
lines changedLines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5829 | 5829 |
| |
5830 | 5830 |
| |
5831 | 5831 |
| |
5832 |
| - | |
| 5832 | + | |
| 5833 | + | |
5833 | 5834 |
| |
5834 |
| - | |
| 5835 | + | |
| 5836 | + | |
| 5837 | + | |
5835 | 5838 |
| |
5836 | 5839 |
| |
5837 | 5840 |
| |
5838 | 5841 |
| |
5839 | 5842 |
| |
5840 | 5843 |
| |
5841 |
| - | |
5842 |
| - | |
5843 | 5844 |
| |
5844 | 5845 |
| |
5845 | 5846 |
| |
|
0 commit comments
Comments
(0)