diff options
| author | Teodor Sigaev <teodor@sigaev.ru> | 2005-03-31 15:08:08 +0000 |
|---|---|---|
| committer | Teodor Sigaev <teodor@sigaev.ru> | 2005-03-31 15:08:08 +0000 |
| commit | fb13881f423193a8342e0fe098f581e511b09d67 (patch) | |
| tree | 8f81480ec5c166066020ccccc613e25321ff1a09 /contrib/tsearch2/tsvector.c | |
| parent | fd977434b36fc3be3276bc20981146592a60bcc3 (diff) | |
| download | postgresql-fb13881f423193a8342e0fe098f581e511b09d67.tar.gz | |
1 fix various comparing functions
2 implement gtsvector_out for use with gevel module (debug GiST indexes, http://www.sai.msu.su/~megera/postgres/gist/gevel/)
Diffstat (limited to 'contrib/tsearch2/tsvector.c')
| -rw-r--r-- | contrib/tsearch2/tsvector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tsearch2/tsvector.c b/contrib/tsearch2/tsvector.c index 2856a16aba..2630694e4e 100644 --- a/contrib/tsearch2/tsvector.c +++ b/contrib/tsearch2/tsvector.c @@ -51,7 +51,7 @@ static int comparePos(const void *a, const void *b) { if (WEP_GETPOS(*(WordEntryPos *) a) == WEP_GETPOS(*(WordEntryPos *) b)) - return 1; + return 0; return (WEP_GETPOS(*(WordEntryPos *) a)> WEP_GETPOS(*(WordEntryPos *) b)) ? 1 : -1; } |
