mirror of
https://github.com/postgres/postgres.git
synced 2025-08-24 09:27:52 +03:00
Fix use of wrong datatype with sizeof().
OID and int are the same size, but they are not the same thing. David Rowley Discussion: http://postgr.es/m/CAKJS1f_MhS++XngkTvWL9X1v8M5t-0N0B-R465yHQY=TmNV0Ew@mail.gmail.com
This commit is contained in:
@@ -1204,7 +1204,7 @@ _copyPartitionedRelPruneInfo(const PartitionedRelPruneInfo *from)
|
||||
COPY_SCALAR_FIELD(nexprs);
|
||||
COPY_POINTER_FIELD(subplan_map, from->nparts * sizeof(int));
|
||||
COPY_POINTER_FIELD(subpart_map, from->nparts * sizeof(int));
|
||||
COPY_POINTER_FIELD(relid_map, from->nparts * sizeof(int));
|
||||
COPY_POINTER_FIELD(relid_map, from->nparts * sizeof(Oid));
|
||||
COPY_POINTER_FIELD(hasexecparam, from->nexprs * sizeof(bool));
|
||||
COPY_SCALAR_FIELD(do_initial_prune);
|
||||
COPY_SCALAR_FIELD(do_exec_prune);
|
||||
|
Reference in New Issue
Block a user