mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Don't pass oidvector by value.
Since the structure ends with a flexible array, doing so truncates any vector having more than one element. New in 9.3, so no back-patch.
This commit is contained in:
@ -231,7 +231,7 @@ AlterObjectRename_internal(Relation rel, Oid objectId, const char *new_name)
|
||||
Form_pg_proc proc = (Form_pg_proc) GETSTRUCT(oldtup);
|
||||
|
||||
IsThereFunctionInNamespace(new_name, proc->pronargs,
|
||||
proc->proargtypes, proc->pronamespace);
|
||||
&proc->proargtypes, proc->pronamespace);
|
||||
}
|
||||
else if (classId == CollationRelationId)
|
||||
{
|
||||
@ -611,7 +611,7 @@ AlterObjectNamespace_internal(Relation rel, Oid objid, Oid nspOid)
|
||||
Form_pg_proc proc = (Form_pg_proc) GETSTRUCT(tup);
|
||||
|
||||
IsThereFunctionInNamespace(NameStr(proc->proname), proc->pronargs,
|
||||
proc->proargtypes, nspOid);
|
||||
&proc->proargtypes, nspOid);
|
||||
}
|
||||
else if (classId == CollationRelationId)
|
||||
{
|
||||
|
Reference in New Issue
Block a user