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

Commite30df61

Browse files
committed
Fix stupid mistake in rank_cd_def cleanup
1 parent8486921 commite30df61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎contrib/tsearch2/rank.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -748,8 +748,8 @@ rank_cd_def(PG_FUNCTION_ARGS)
748748

749749
res=calc_rank_cd(weights,txt,query, (PG_NARGS()==3) ?PG_GETARG_DATUM(2) :DEF_NORM_METHOD);
750750

751-
PG_FREE_IF_COPY(txt,1);
752-
PG_FREE_IF_COPY(query,2);
751+
PG_FREE_IF_COPY(txt,0);
752+
PG_FREE_IF_COPY(query,1);
753753

754754
PG_RETURN_FLOAT4(res);
755755
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp