mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
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.
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user