constraint issues #6

Merged
merged 1 commit into from Dec 3, 2012
View
@@ -22,6 +22,7 @@ var Postgres = function(connection){
information_schema.table_constraints tc \
where \
cu.constraint_name = tc.constraint_name \
+ and tc.constraint_type = 'PRIMARY KEY' \
and tc.table_name = ist.table_name \
) as pk \
from information_schema.tables ist \