1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-29 10:41:53 +03:00

Fix up compiler warnings/errors from f4fb45d15.

Per early buildfarm returns.
This commit is contained in:
Tom Lane
2022-03-27 18:32:40 -04:00
parent f4fb45d15c
commit cc7401d5ca
2 changed files with 13 additions and 15 deletions

View File

@ -3415,7 +3415,6 @@ transformJsonConstructorOutput(ParseState *pstate, JsonOutput *output,
if (!OidIsValid(returning->typid))
{
ListCell *lc;
bool have_json = false;
bool have_jsonb = false;
foreach(lc, args)
@ -3423,7 +3422,6 @@ transformJsonConstructorOutput(ParseState *pstate, JsonOutput *output,
Node *expr = lfirst(lc);
Oid typid = exprType(expr);
have_json |= typid == JSONOID;
have_jsonb |= typid == JSONBOID;
if (have_jsonb)
@ -3437,8 +3435,6 @@ transformJsonConstructorOutput(ParseState *pstate, JsonOutput *output,
}
else
{
/* Note: this includes the have_json case */
/* XXX TEXT is default by the standard, but we return JSON */
returning->typid = JSONOID;
returning->format->format_type = JS_FORMAT_JSON;