Permalink
Browse files

Merge pull request #7 from Kwal/master

Fix for multiple results from subquery
  • Loading branch information...
robconery committed Feb 19, 2013
2 parents 9f35d26 + b6c3abf commit e5dcaf2a6f1deaae2344e3bb484a5410add6a8d3
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/mysql.js
View
@@ -19,6 +19,7 @@ var MySQL = function(credentials){
select column_name from \
information_schema.key_column_usage \
where table_name = ist.table_name \
+ and constraint_schema = ist.table_schema \
and constraint_name = 'PRIMARY' \
) as 'pk' \
from information_schema.tables ist \

0 comments on commit e5dcaf2

Please sign in to comment.