- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit20bef3f
committed
Allow record_in() and record_recv() to work for transient record types.
If we have the typmod that identifies a registered record type, there's noreason that record_in() should refuse to perform input conversion for it.Now, in direct SQL usage, record_in() will always be passed typmod = -1with type OID RECORDOID, because no typmodin exists for type RECORD, so thecase can't arise. However, some InputFunctionCall users such as PLs may beable to supply the right typmod, so we should allow this to support them.Note: the previous coding and comment here predate commit59c016a.There has been no case since 8.1 in which the passed type OID wouldn't bevalid; and if it weren't, this error message wouldn't be apropos anyway.Better to let lookup_rowtype_tupdesc complain about it.Back-patch to 9.1, as this is necessary for my upcoming plpython fix.I'm committing it separately just to make it a bit more visible in thecommit history.1 parent49f9a28 commit20bef3f
1 file changed
+17
-22
lines changedLines changed: 17 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
| 76 | + | |
80 | 77 |
| |
81 |
| - | |
82 | 78 |
| |
83 | 79 |
| |
84 | 80 |
| |
| |||
91 | 87 |
| |
92 | 88 |
| |
93 | 89 |
| |
94 |
| - | |
95 |
| - | |
96 |
| - | |
97 |
| - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
98 | 96 |
| |
99 |
| - | |
| 97 | + | |
100 | 98 |
| |
101 | 99 |
| |
102 | 100 |
| |
103 |
| - | |
104 | 101 |
| |
105 | 102 |
| |
106 | 103 |
| |
| |||
449 | 446 |
| |
450 | 447 |
| |
451 | 448 |
| |
452 |
| - | |
453 |
| - | |
454 |
| - | |
455 |
| - | |
| 449 | + | |
456 | 450 |
| |
457 |
| - | |
458 | 451 |
| |
459 | 452 |
| |
460 | 453 |
| |
| |||
466 | 459 |
| |
467 | 460 |
| |
468 | 461 |
| |
469 |
| - | |
470 |
| - | |
471 |
| - | |
472 |
| - | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
473 | 468 |
| |
474 |
| - | |
| 469 | + | |
475 | 470 |
| |
476 | 471 |
| |
477 | 472 |
| |
478 |
| - | |
| 473 | + | |
479 | 474 |
| |
480 | 475 |
| |
481 | 476 |
| |
|
0 commit comments
Comments
(0)