* as this determines the set of available casts.
*/
bool
-can_coerce_type(int nargs, Oid *input_typeids, Oid *target_typeids,
+can_coerce_type(int nargs, const Oid *input_typeids, const Oid *target_typeids,
CoercionContext ccontext)
{
bool have_generics = false;
* We do not ereport here, but just return false if a rule is violated.
*/
bool
-check_generic_type_consistency(Oid *actual_arg_types,
- Oid *declared_arg_types,
+check_generic_type_consistency(const Oid *actual_arg_types,
+ const Oid *declared_arg_types,
int nargs)
{
int j;
* assume that successive inputs are of the same actual element type.
*/
Oid
-enforce_generic_type_consistency(Oid *actual_arg_types,
+enforce_generic_type_consistency(const Oid *actual_arg_types,
Oid *declared_arg_types,
int nargs,
Oid rettype,
CoercionContext ccontext,
CoercionForm cformat,
int location);
-extern bool can_coerce_type(int nargs, Oid *input_typeids, Oid *target_typeids,
+extern bool can_coerce_type(int nargs, const Oid *input_typeids, const Oid *target_typeids,
CoercionContext ccontext);
extern Node *coerce_type(ParseState *pstate, Node *node,
Oid inputTypeId, Oid targetTypeId, int32 targetTypeMod,
Oid targetTypeId,
const char *context);
-extern bool check_generic_type_consistency(Oid *actual_arg_types,
- Oid *declared_arg_types,
+extern bool check_generic_type_consistency(const Oid *actual_arg_types,
+ const Oid *declared_arg_types,
int nargs);
-extern Oid enforce_generic_type_consistency(Oid *actual_arg_types,
+extern Oid enforce_generic_type_consistency(const Oid *actual_arg_types,
Oid *declared_arg_types,
int nargs,
Oid rettype,