Skip to content
Browse files

Merge branch 'master' of github.com:robconery/massive-js

  • Loading branch information...
2 parents 9304af0 + ef1bc77 commit b84dcc90beac81274deaa79ae7a63e8f170f97a4 @subsonic subsonic committed Dec 17, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −1 lib/postgres.js
  2. +1 −1 package.json
View
3 lib/postgres.js
@@ -22,7 +22,8 @@ var Postgres = function(connection){
information_schema.table_constraints tc \
where \
cu.constraint_name = tc.constraint_name \
- and tc.table_name = ist.table_name \
+ and tc.constraint_type = 'PRIMARY KEY' \
+ and tc.table_name = ist.table_name limit(1) \
) as pk \
from information_schema.tables ist \
where table_schema NOT IN ('pg_catalog', 'information_schema')";
View
2 package.json
@@ -1,7 +1,7 @@
{
"name": "massive",
"description": "Sequel-ish db utility for Node",
- "version": "0.1.1",
+ "version": "0.1.2",
"author": "Rob Conery <rob@tekpub.com>",
"contributors": [ "Karl Seguin <karl@openmymind.net>" ],
"dependencies": {

0 comments on commit b84dcc9

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