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

Commit34e09e7

Browse files
Remove duplicate lines of code
Commit6df7a96 accidentally included two identical prototypes fordefault_multirange_selectivi() and commit086cf14 added a break;statement where one was already present, thus duplicating it. Whilethere is no bug caused by this, fix by removing the duplicated linesas they provide no value.Backpatch the fix for duplicate prototypes to v14 and the duplicatebreak statement fix to all supported branches to avoid backpatchinghazards due to the removal.Reported-by: Anton Voloshin <a.voloshin@postgrespro.ru>Discussion:https://postgr.es/m/0e69cb60-0176-f6d0-7e15-6478b7d85724@postgrespro.ru
1 parentf4a4a18 commit34e09e7

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ static double calc_multirangesel(TypeCacheEntry *typcache,
3535
VariableStatData*vardata,
3636
constMultirangeType*constval,Oidoperator);
3737
staticdoubledefault_multirange_selectivity(Oidoperator);
38-
staticdoubledefault_multirange_selectivity(Oidoperator);
3938
staticdoublecalc_hist_selectivity(TypeCacheEntry*typcache,
4039
VariableStatData*vardata,
4140
constMultirangeType*constval,

‎src/interfaces/ecpg/preproc/variable.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ find_struct_member(char *name, char *str, struct ECPGstruct_member *members, int
105105
else
106106
returnfind_struct_member(name,++end,members->type->u.members,brace_level);
107107
break;
108-
break;
109108
case'.':
110109
if (members->type->type==ECPGt_array)
111110
returnfind_struct_member(name,end,members->type->u.element->u.members,brace_level);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp