diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2022-03-27 18:32:40 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2022-03-27 18:32:40 -0400 |
commit | cc7401d5ca498a84d9b47fd2e01cebd8e830e558 (patch) | |
tree | dcca4c360a059350363db35a99a0017d0f5a6e74 /src/backend/parser/parse_expr.c | |
parent | f4fb45d15c59d7add2e1b81a9d477d0119a9691a (diff) | |
download | postgresql-cc7401d5ca498a84d9b47fd2e01cebd8e830e558.tar.gz postgresql-cc7401d5ca498a84d9b47fd2e01cebd8e830e558.zip |
Fix up compiler warnings/errors from f4fb45d15.
Per early buildfarm returns.
Diffstat (limited to 'src/backend/parser/parse_expr.c')
-rw-r--r-- | src/backend/parser/parse_expr.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/backend/parser/parse_expr.c b/src/backend/parser/parse_expr.c index 6b93a76bca6..781c9709e6d 100644 --- a/src/backend/parser/parse_expr.c +++ b/src/backend/parser/parse_expr.c @@ -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; |