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

Commit1171dbd

Browse files
committed
Fix incorrect return value in JSON equality function for scalars
equalsJsonbScalarValue() uses a boolean as return type, however for onecode path -1 gets returned, which is confusing. The origin of theconfusion is visibly that this code got copy-pasted fromcompareJsonbScalarValue() since it has been introduced ind1d50bf.No backpatch, as this is only cosmetic.Author: Rikard FalkebornDiscussion:https://postgr.es/m/CADRDgG7mJnek6HNW13f+LF6V=6gag9PM+P7H5dnyWZAv49aBGg@mail.gmail.com
1 parent8a29ed0 commit1171dbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,7 @@ equalsJsonbScalarValue(JsonbValue *aScalar, JsonbValue *bScalar)
13181318
}
13191319
}
13201320
elog(ERROR,"jsonb scalar type mismatch");
1321-
return-1;
1321+
returnfalse;
13221322
}
13231323

13241324
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp