@@ -961,7 +961,7 @@ multirange_constructor2(PG_FUNCTION_ARGS)
961
961
962
962
if (PG_ARGISNULL (0 ))
963
963
elog (ERROR ,
964
- "multirange values cannot contain NULL members" );
964
+ "multirange values cannot contain null members" );
965
965
966
966
rangeArray = PG_GETARG_ARRAYTYPE_P (0 );
967
967
@@ -973,9 +973,7 @@ multirange_constructor2(PG_FUNCTION_ARGS)
973
973
974
974
rngtypid = ARR_ELEMTYPE (rangeArray );
975
975
if (rngtypid != rangetyp -> type_id )
976
- ereport (ERROR ,
977
- (errcode (ERRCODE_DATATYPE_MISMATCH ),
978
- errmsg ("type %u does not match constructor type" , rngtypid )));
976
+ elog (ERROR , "type %u does not match constructor type" , rngtypid );
979
977
980
978
/*
981
979
* Be careful: we can still be called with zero ranges, like this:
@@ -997,7 +995,7 @@ multirange_constructor2(PG_FUNCTION_ARGS)
997
995
if (nulls [i ])
998
996
ereport (ERROR ,
999
997
(errcode (ERRCODE_NULL_VALUE_NOT_ALLOWED ),
1000
- errmsg ("multirange values cannot contain NULL members" )));
998
+ errmsg ("multirange values cannot contain null members" )));
1001
999
1002
1000
/* make_multirange will do its own copy */
1003
1001
ranges [i ] = DatumGetRangeTypeP (elements [i ]);
@@ -1031,16 +1029,14 @@ multirange_constructor1(PG_FUNCTION_ARGS)
1031
1029
1032
1030
if (PG_ARGISNULL (0 ))
1033
1031
elog (ERROR ,
1034
- "multirange values cannot contain NULL members" );
1032
+ "multirange values cannot contain null members" );
1035
1033
1036
1034
range = PG_GETARG_RANGE_P (0 );
1037
1035
1038
1036
/* Make sure the range type matches. */
1039
1037
rngtypid = RangeTypeGetOid (range );
1040
1038
if (rngtypid != rangetyp -> type_id )
1041
- ereport (ERROR ,
1042
- (errcode (ERRCODE_DATATYPE_MISMATCH ),
1043
- errmsg ("type %u does not match constructor type" , rngtypid )));
1039
+ elog (ERROR , "type %u does not match constructor type" , rngtypid );
1044
1040
1045
1041
PG_RETURN_MULTIRANGE_P (make_multirange (mltrngtypid , rangetyp , 1 , & range ));
1046
1042
}
0 commit comments