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/intarray/_int_bool.c | |
parent | d1ce4f7396aac34233e075d0342ac704593799ce (diff) | |
download | postgresql-9f652d430fbd1e757caaec9fe64d3e94c8693158.tar.gz postgresql-9f652d430fbd1e757caaec9fe64d3e94c8693158.zip |
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/intarray/_int_bool.c')
-rw-r--r-- | contrib/intarray/_int_bool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/intarray/_int_bool.c b/contrib/intarray/_int_bool.c index b6a5d1b1e89..2a9d80bfdbc 100644 --- a/contrib/intarray/_int_bool.c +++ b/contrib/intarray/_int_bool.c @@ -465,7 +465,7 @@ bqarr_in(PG_FUNCTION_ARGS) commonlen = COMPUTESIZE(state.num); query = (QUERYTYPE *) palloc(commonlen); - query->len = commonlen; + SET_VARSIZE(query, commonlen); query->size = state.num; ptr = GETQUERY(query); |