!4330 [bugfix] fix bug in does_not_exist_skipping

Merge pull request !4330 from Lamaric/fix-I89MYV
This commit is contained in:
opengauss_bot
2023-11-29 11:54:12 +00:00
committed by Gitee

View File

@ -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");