代码生成器会查询到已删除的无用字段

This commit is contained in:
zyj 2024-02-22 10:05:24 +08:00
parent 84aa3b5d4f
commit 6de980966d

View File

@ -35,6 +35,7 @@ FROM pg_attribute a
WHERE (c.relkind = ANY (ARRAY['r'::"char", 'p'::"char"]))
AND a.attnum > 0
AND n.nspname = 'public'::name
AND not a.attisdropped
ORDER BY c.relname, a.attnum;
create view list_table as