!4330 [bugfix] fix bug in does_not_exist_skipping
Merge pull request !4330 from Lamaric/fix-I89MYV
This commit is contained in:
@ -363,11 +363,12 @@ static void does_not_exist_skipping(ObjectType objtype, List* objname, List* obj
|
||||
else
|
||||
ereport(ERROR, (errcode(ERRCODE_UNRECOGNIZED_NODE_TYPE), (errmsg("unknown type: %d",(int)ptype->type))));
|
||||
|
||||
if (!schema_does_not_exist_skipping(typ->names, &msg, &name)) {
|
||||
List *typeNames = list_copy(typ->names);
|
||||
if (!schema_does_not_exist_skipping(typeNames, &msg, &name)) {
|
||||
msg = gettext_noop("type \"%s\" does not exist");
|
||||
name = TypeNameToString(typ);
|
||||
}
|
||||
|
||||
list_free_ext(typeNames);
|
||||
} break;
|
||||
case OBJECT_COLLATION:
|
||||
msg = gettext_noop("collation \"%s\" does not exist");
|
||||
|
Reference in New Issue
Block a user