Skip to content
This repository has been archived by the owner on Mar 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #17 from jeancarlozapata/patch-1
Browse files Browse the repository at this point in the history
Fix inner query returning more than one result
  • Loading branch information
robconery committed Jun 10, 2014
2 parents 4036d13 + 39de475 commit 273cb8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mysql.js
Expand Up @@ -20,7 +20,7 @@ var MySQL = function(credentials){
information_schema.key_column_usage \
where table_name = ist.table_name \
and constraint_schema = ist.table_schema \
and constraint_name = 'PRIMARY' \
and constraint_name = 'PRIMARY' LIMIT 1 \
) as 'pk' \
from information_schema.tables ist \
where table_schema = '" + credentials.database + "'";
Expand Down

0 comments on commit 273cb8b

Please sign in to comment.