修正函数HasNOTNULLConstraint内部打印格式控制字符有误

This commit is contained in:
lilong
2022-12-30 16:45:47 +08:00
parent ea4f17cc42
commit ee3b7bcb4c

View File

@ -401,7 +401,7 @@ static bool HasNOTNULLConstraint(Query* parse, NullTest* ntest)
if (!HeapTupleIsValid(atttuple)) {
ereport(ERROR,
(errcode(ERRCODE_CACHE_LOOKUP_FAILED),
errmsg("cache lookup failed for attribute %u of relation %hd",
errmsg("cache lookup failed for attribute %hd of relation %u",
attno, reloid)));
}
Form_pg_attribute attStruct = (Form_pg_attribute)GETSTRUCT(atttuple);