File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -1345,9 +1345,7 @@ range_agg_transfn(PG_FUNCTION_ARGS)
13451345
13461346 rngtypoid = get_fn_expr_argtype (fcinfo -> flinfo , 1 );
13471347 if (!type_is_range (rngtypoid ))
1348- ereport (ERROR ,
1349- (errcode (ERRCODE_DATATYPE_MISMATCH ),
1350- errmsg ("range_agg must be called with a range" )));
1348+ elog (ERROR , "range_agg must be called with a range" );
13511349
13521350 if (PG_ARGISNULL (0 ))
13531351 state = initArrayResult (rngtypoid , aggContext , false);
@@ -1416,9 +1414,7 @@ multirange_intersect_agg_transfn(PG_FUNCTION_ARGS)
14161414
14171415 mltrngtypoid = get_fn_expr_argtype (fcinfo -> flinfo , 1 );
14181416 if (!type_is_multirange (mltrngtypoid ))
1419- ereport (ERROR ,
1420- (errcode (ERRCODE_DATATYPE_MISMATCH ),
1421- errmsg ("range_intersect_agg must be called with a multirange" )));
1417+ elog (ERROR , "range_intersect_agg must be called with a multirange" );
14221418
14231419 typcache = multirange_get_typcache (fcinfo , mltrngtypoid );
14241420
Original file line number Diff line number Diff line change @@ -1211,7 +1211,7 @@ range_intersect_agg_transfn(PG_FUNCTION_ARGS)
12111211
12121212 rngtypoid = get_fn_expr_argtype (fcinfo -> flinfo , 1 );
12131213 if (!type_is_range (rngtypoid ))
1214- ereport (ERROR , ( errmsg ( "range_intersect_agg must be called with a range" )) );
1214+ elog (ERROR , "range_intersect_agg must be called with a range" );
12151215
12161216 typcache = range_get_typcache (fcinfo , rngtypoid );
12171217
You can’t perform that action at this time.
0 commit comments