Skip to content
Browse files

Merge pull request #6 from bteller/master

constraint issues
  • Loading branch information...
2 parents 7ea49ef + 01b442f commit d0243cd3518d94c32699f813b43301f63c714bb5 @robconery committed Dec 3, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/postgres.js
View
1 lib/postgres.js
@@ -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 \

0 comments on commit d0243cd

Please sign in to comment.
Something went wrong with that request. Please try again.