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_util.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_util.c')
-rw-r--r-- | contrib/tsearch2/query_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tsearch2/query_util.c b/contrib/tsearch2/query_util.c index efa74fe053c..083d173d132 100644 --- a/contrib/tsearch2/query_util.c +++ b/contrib/tsearch2/query_util.c @@ -260,7 +260,7 @@ QTN2QT(QTNode * in, MemoryType memtype) len = COMPUTESIZE(nnode, sumlen); out = (QUERYTYPE *) MEMALLOC(memtype, len); - out->len = len; + SET_VARSIZE(out, len); out->size = nnode; state.curitem = GETQUERY(out); |