Skip to content

Commit 6dc0738

Browse 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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy