Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

constraint issues #6

Merged
merged 1 commit into from over 1 year ago

2 participants

Bradley Teller Rob Conery
Bradley Teller

This fix here is just an update to the sql script for postgresql to pull in the table names with primary keys. This doesn't address the issue for composite primary keys though. It seems either the recommendation would be to not use them, which seems less than ideal, or to change the way these arguments are composed and parsed.

Rob Conery robconery merged commit d0243cd into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Dec 02, 2012
Bradley Teller bteller added primary key exclusion 01b442f
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  lib/postgres.js
1  lib/postgres.js
@@ -22,6 +22,7 @@ var Postgres = function(connection){
22 22 information_schema.table_constraints tc \
23 23 where \
24 24 cu.constraint_name = tc.constraint_name \
  25 + and tc.constraint_type = 'PRIMARY KEY' \
25 26 and tc.table_name = ist.table_name \
26 27 ) as pk \
27 28 from information_schema.tables ist \

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.