Closed zzzeek closed 6 years ago
Original comment by Anonymous:
Can the reflection be two queries instead of three by removing the primary key query and selecting in the foreign keys query the primary keys too.
WHERE RC.RDB$CONSTRAINT_TYPE IN ('PRIMARY KEY', 'FOREIGN KEY')
Original comment by Michael Bayer (Bitbucket: zzzeek, GitHub: zzzeek):
this is committed in changeset:1789. i have no resources to test firebird so hopefully this one works already.
Original comment by Anonymous:
Augmented version, that implements also FKs
Originally reported by: Anonymous
FB reflection has a little bug: it uses sqltypes.Double() instead of .Float() to represent double precision fields; the former does not even exist.
Also, it doesn't load the primary key fields.
The attached patch cures this problems. If this sounds good, I will try to complete the fix with another patch for the foreign keys.