RDBI/rdbi-driver-postgresql — pull request #8 by dfitzpat (2011-12-23 05:15:20+00:00)
Title: Fix bug in table_schema primary key flag

The primary key flag was incorrectly activating if a column by the same name in a different table was setup as a primary key.

For example:

Person Table
-----------------
person_id (primary key)
company_id (not primary key)

Company Table
--------------------
company_id (primary key)

In person.company_id tc.constraint_type == "PRIMARY KEY" returned true. Adding an additional join on table_name removed the error.