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)
1345
1345
1346
1346
rngtypoid = get_fn_expr_argtype (fcinfo -> flinfo , 1 );
1347
1347
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" );
1351
1349
1352
1350
if (PG_ARGISNULL (0 ))
1353
1351
state = initArrayResult (rngtypoid , aggContext , false);
@@ -1416,9 +1414,7 @@ multirange_intersect_agg_transfn(PG_FUNCTION_ARGS)
1416
1414
1417
1415
mltrngtypoid = get_fn_expr_argtype (fcinfo -> flinfo , 1 );
1418
1416
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" );
1422
1418
1423
1419
typcache = multirange_get_typcache (fcinfo , mltrngtypoid );
1424
1420
Original file line number Diff line number Diff line change @@ -1211,7 +1211,7 @@ range_intersect_agg_transfn(PG_FUNCTION_ARGS)
1211
1211
1212
1212
rngtypoid = get_fn_expr_argtype (fcinfo -> flinfo , 1 );
1213
1213
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" );
1215
1215
1216
1216
typcache = range_get_typcache (fcinfo , rngtypoid );
1217
1217
You can’t perform that action at this time.
0 commit comments