aboutsummaryrefslogtreecommitdiff
path: root/contrib/jsonb_plpython/jsonb_plpython.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_plpython/jsonb_plpython.c
parent2520cf8c2a0a1d679094dffbd99871884e620ed5 (diff)
downloadpostgresql-4e89c79a52f8a898edd648b56a00f0f4f840cfe7.tar.gz
postgresql-4e89c79a52f8a898edd648b56a00f0f4f840cfe7.zip
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_plpython/jsonb_plpython.c')
-rw-r--r--contrib/jsonb_plpython/jsonb_plpython.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/jsonb_plpython/jsonb_plpython.c b/contrib/jsonb_plpython/jsonb_plpython.c
index b41c738ad62..b06ad9f9291 100644
--- a/contrib/jsonb_plpython/jsonb_plpython.c
+++ b/contrib/jsonb_plpython/jsonb_plpython.c
@@ -380,7 +380,7 @@ PLyNumber_ToJsonbValue(PyObject *obj, JsonbValue *jbvNum)
{
ereport(ERROR,
(errcode(ERRCODE_DATATYPE_MISMATCH),
- (errmsg("could not convert value \"%s\" to jsonb", str))));
+ errmsg("could not convert value \"%s\" to jsonb", str)));
}
PG_END_TRY();
@@ -394,7 +394,7 @@ PLyNumber_ToJsonbValue(PyObject *obj, JsonbValue *jbvNum)
if (numeric_is_nan(num))
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
- (errmsg("cannot convert NaN to jsonb"))));
+ errmsg("cannot convert NaN to jsonb")));
jbvNum->type = jbvNumeric;
jbvNum->val.numeric = num;
@@ -446,8 +446,8 @@ PLyObject_ToJsonbValue(PyObject *obj, JsonbParseState **jsonb_state, bool is_ele
else
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
- (errmsg("Python type \"%s\" cannot be transformed to jsonb",
- PLyObject_AsString((PyObject *) obj->ob_type)))));
+ errmsg("Python type \"%s\" cannot be transformed to jsonb",
+ PLyObject_AsString((PyObject *) obj->ob_type))));
/* Push result into 'jsonb_state' unless it is raw scalar value. */
return (*jsonb_state ?