summaryrefslogtreecommitdiff
path: root/contrib/jsonb_plperl/jsonb_plperl.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2020-01-30 13:32:04 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2020-01-30 13:32:04 -0300
commit4e89c79a52f8a898edd648b56a00f0f4f840cfe7 (patch)
treeba259edb0559281eaf0953d6995781b264a1aec7 /contrib/jsonb_plperl/jsonb_plperl.c
parent2520cf8c2a0a1d679094dffbd99871884e620ed5 (diff)
downloadpostgresql-4e89c79a52f8a898edd648b56a00f0f4f840cfe7.tar.gz
Remove excess parens in ereport() calls
Cosmetic cleanup, not worth backpatching. Discussion: https://postgr.es/m/20200129200401.GA6303@alvherre.pgsql Reviewed-by: Tom Lane, Michael Paquier
Diffstat (limited to 'contrib/jsonb_plperl/jsonb_plperl.c')
-rw-r--r--contrib/jsonb_plperl/jsonb_plperl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/jsonb_plperl/jsonb_plperl.c b/contrib/jsonb_plperl/jsonb_plperl.c
index 4ae13532d1..ed361efbe2 100644
--- a/contrib/jsonb_plperl/jsonb_plperl.c
+++ b/contrib/jsonb_plperl/jsonb_plperl.c
@@ -235,11 +235,11 @@ SV_to_JsonbValue(SV *in, JsonbParseState **jsonb_state, bool is_elem)
if (isinf(nval))
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
- (errmsg("cannot convert infinity to jsonb"))));
+ errmsg("cannot convert infinity to jsonb")));
if (isnan(nval))
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
- (errmsg("cannot convert NaN to jsonb"))));
+ errmsg("cannot convert NaN to jsonb")));
out.type = jbvNumeric;
out.val.numeric =
@@ -260,7 +260,7 @@ SV_to_JsonbValue(SV *in, JsonbParseState **jsonb_state, bool is_elem)
*/
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
- (errmsg("cannot transform this Perl type to jsonb"))));
+ errmsg("cannot transform this Perl type to jsonb")));
return NULL;
}
}