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

Commit6dc0738

Browse files
Update out of date comments in pg_trgm
Commitbe8a7a6 changed the check_only parameter to a flag arraybut missed updating all comments. Update, and fix a related typo.Discussion:https://postgr.es/m/9732D8A2-EABD-4F5B-8BA0-A97DA4AB51A7@yesql.se
1 parentae4fc52 commit6dc0738

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎contrib/pg_trgm/trgm_op.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,14 +442,15 @@ comp_ptrgm(const void *v1, const void *v2)
442442

443443
/*
444444
* Iterative search function which calculates maximum similarity with word in
445-
* the string. But maximum similarity is calculated only if check_only == false.
445+
* the string. Maximum similarity is only calculated only if the flag
446+
* WORD_SIMILARITY_CHECK_ONLY isn't set.
446447
*
447448
* trg2indexes: array which stores indexes of the array "found".
448449
* found: array which stores true of false values.
449450
* ulen1: count of unique trigrams of array "trg1".
450451
* len2: length of array "trg2" and array "trg2indexes".
451452
* len: length of the array "found".
452-
*lags: set of boolean flags parameterizing similarity calculation.
453+
*flags: set of boolean flags parameterizing similarity calculation.
453454
* bounds: whether each trigram is left/right bound of word.
454455
*
455456
* Returns word similarity.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp