* relabel_to_typmod * Add a RelabelType node that changes just the typmod of the expression. * * Convenience function for a common usage of applyRelabelType. */
| 653 | * Convenience function for a common usage of applyRelabelType. |
| 654 | */ |
| 655 | Node * |
| 656 | relabel_to_typmod(Node *expr, int32 typmod) |
| 657 | { |
| 658 | return applyRelabelType(expr, exprType(expr), typmod, exprCollation(expr), |
| 659 | COERCE_EXPLICIT_CAST, -1, false); |
| 660 | } |
| 661 | |
| 662 | /* |
| 663 | * strip_implicit_coercions: remove implicit coercions at top level of tree |
no test coverage detected