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

Appearance settings

Commit 6dc0738

Browse filesBrowse files
Update out of date comments in pg_trgm
Commit be8a7a6 changed the check_only parameter to a flag array but missed updating all comments. Update, and fix a related typo. Discussion: https://postgr.es/m/9732D8A2-EABD-4F5B-8BA0-A97DA4AB51A7@yesql.se
1 parent ae4fc52 commit 6dc0738
Copy full SHA for 6dc0738

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎contrib/pg_trgm/trgm_op.c

Copy file name to clipboardExpand all lines: contrib/pg_trgm/trgm_op.c
+3-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.