diff options
author | Alvaro Herrera | 2020-01-30 16:32:04 +0000 |
---|---|---|
committer | Alvaro Herrera | 2020-01-30 16:32:04 +0000 |
commit | 4e89c79a52f8a898edd648b56a00f0f4f840cfe7 (patch) | |
tree | ba259edb0559281eaf0953d6995781b264a1aec7 /contrib/jsonb_plpython | |
parent | 2520cf8c2a0a1d679094dffbd99871884e620ed5 (diff) |
Remove excess parens in ereport() calls
Cosmetic cleanup, not worth backpatching.
Discussion: https://postgr.es/m/[email protected]
Reviewed-by: Tom Lane, Michael Paquier
Diffstat (limited to 'contrib/jsonb_plpython')
-rw-r--r-- | contrib/jsonb_plpython/jsonb_plpython.c | 8 |
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 ? |