diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-02-28 22:44:38 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-02-28 22:44:38 +0000 |
commit | 9f652d430fbd1e757caaec9fe64d3e94c8693158 (patch) | |
tree | 9215d2131d85e73caeb96fe23ba442c17b8d4575 /contrib/tsearch2/query_support.c | |
parent | d1ce4f7396aac34233e075d0342ac704593799ce (diff) |
Fix up several contrib modules that were using varlena datatypes in not-so-obvious
ways. I'm not totally sure that I caught everything, but at least now they pass
their regression tests with VARSIZE/SET_VARSIZE defined to reverse byte order.
Diffstat (limited to 'contrib/tsearch2/query_support.c')
-rw-r--r-- | contrib/tsearch2/query_support.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/tsearch2/query_support.c b/contrib/tsearch2/query_support.c index dfdd7140739..0fc6fe334d2 100644 --- a/contrib/tsearch2/query_support.c +++ b/contrib/tsearch2/query_support.c @@ -144,9 +144,9 @@ CompareTSQ(QUERYTYPE * a, QUERYTYPE * b) { return (a->size < b->size) ? -1 : 1; } - else if (a->len != b->len) + else if (VARSIZE(a) != VARSIZE(b)) { - return (a->len < b->len) ? -1 : 1; + return (VARSIZE(a) < VARSIZE(b)) ? -1 : 1; } else { |