mirror of https://github.com/citusdata/citus.git
Fix alignment issue in DatumToBytea
parent
bebca9ee79
commit
2fca5ff3b5
|
@ -1087,7 +1087,11 @@ DatumToBytea(Datum value, Form_pg_attribute attrForm)
|
||||||
{
|
{
|
||||||
if (attrForm->attbyval)
|
if (attrForm->attbyval)
|
||||||
{
|
{
|
||||||
store_att_byval(VARDATA(result), value, attrForm->attlen);
|
Datum tmp;
|
||||||
|
store_att_byval(&tmp, value, attrForm->attlen);
|
||||||
|
|
||||||
|
memcpy_s(VARDATA(result), datumLength + VARHDRSZ,
|
||||||
|
&tmp, attrForm->attlen);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue