Saludos, haciendo test con standardform especificamente con el adaptador postgres hay un problema al momento obtener la metadata cuando se tiene mas de un constraint, porq la consulta con la que se obtiene esta informacion hay un subquery que devuelve mas de un resultado...
SELECT a.attname AS Field, t.typname AS Type,
CASE WHEN attnotnull=false THEN 'YES' ELSE 'NO' END AS Null,
CASE WHEN (select cc.contype FROM pg_catalog.pg_constraint cc WHERE
cc.conrelid = c.oid AND cc.conkey[1] = a.attnum)='p' THEN 'PRI' ELSE ''
END AS Key FROM pg_catalog.pg_class c, pg_catalog.pg_constraint cc, pg_catalog.pg_attribute a,
pg_catalog.pg_type t WHERE c.relname = 'persona' AND c.oid = a.attrelid
AND a.attnum > 0 AND t.oid = a.atttypid order by a.attnum
Comentarios