Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update lib/postgres.js

Added limiter to column lookup
  • Loading branch information...
commit d261a377d17386925b96651677ff1a773257634a 1 parent d0243cd
@robconery authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/postgres.js
View
2  lib/postgres.js
@@ -23,7 +23,7 @@ var Postgres = function(connection){
where \
cu.constraint_name = tc.constraint_name \
and tc.constraint_type = 'PRIMARY KEY' \
- and tc.table_name = ist.table_name \
+ 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')";
Please sign in to comment.
Something went wrong with that request. Please try again.