Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf7a605f

Browse files
committed
Small cleanups in SQL/JSON code
These are to keep Coverity happy. In one case remove a redundant NULLcheck, and in another explicitly ignore a function result that is alreadyknown.
1 parent5cd1c40 commitf7a605f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/backend/parser/parse_expr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3569,7 +3569,7 @@ coerceJsonFuncExpr(ParseState *pstate, Node *expr,
35693569
location=exprLocation(expr);
35703570

35713571
if (location<0)
3572-
location=returning ?returning->format->location :-1;
3572+
location=returning->format->location;
35733573

35743574
/* special case for RETURNING bytea FORMAT json */
35753575
if (returning->format->format_type==JS_FORMAT_JSON&&

‎src/backend/utils/adt/jsonb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2264,7 +2264,7 @@ JsonbUnquote(Jsonb *jb)
22642264
{
22652265
JsonbValuev;
22662266

2267-
JsonbExtractScalar(&jb->root,&v);
2267+
(void)JsonbExtractScalar(&jb->root,&v);
22682268

22692269
if (v.type==jbvString)
22702270
returnpnstrdup(v.val.string.val,v.val.string.len);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp