Fix broken compare function for tsquery_ops. Per Tom's report.

Teodor Sigaev <teodor@sigaev.ru>

Commit: fc0a2b45d030f6aac942df3fcdde17d6d087cd93
Author: Teodor Sigaev <teodor@sigaev.ru>
Date: 2008-04-20T09:39:38Z
Releases: 8.2.8
Fix broken compare function for tsquery_ops. Per Tom's report.

I never understood why initial authors GiST in pgsql choose so
stgrange signature for 'same' method:
bool *sameFn(Datum a, Datum b, bool* result)
instead of simple, logical
bool sameFn(Datum a, Datum b)
This change will break any existing GiST extension, so we still live with
it and will live.

Files

PathChange+/−
contrib/tsearch2/query_gist.c modified +4 −1