* TupleDescInitEntryCollation * * Assign a nondefault collation to a previously initialized tuple descriptor * entry. */
| 759 | * entry. |
| 760 | */ |
| 761 | void |
| 762 | TupleDescInitEntryCollation(TupleDesc desc, |
| 763 | AttrNumber attributeNumber, |
| 764 | Oid collationid) |
| 765 | { |
| 766 | /* |
| 767 | * sanity checks |
| 768 | */ |
| 769 | AssertArg(PointerIsValid(desc)); |
| 770 | AssertArg(attributeNumber >= 1); |
| 771 | AssertArg(attributeNumber <= desc->natts); |
| 772 | |
| 773 | TupleDescAttr(desc, attributeNumber - 1)->attcollation = collationid; |
| 774 | } |
| 775 | |
| 776 | |
| 777 | /* |
no outgoing calls
no test coverage detected