Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix for multiple results from subquery #7

Merged
merged 1 commit into from

2 participants

@Kwal

If the table name is the same between multiple schemas, multiple
results get returned from the subquery which causes the query to fail.

@Kwal Kwal Fix for multiple results from subquery
If the table name is the same between multiple schemas, multiple
results get returned from the subquery which causes the query to fail.
b6c3abf
@robconery robconery merged commit e5dcaf2 into robconery:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 10, 2013
  1. @Kwal

    Fix for multiple results from subquery

    Kwal authored
    If the table name is the same between multiple schemas, multiple
    results get returned from the subquery which causes the query to fail.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/mysql.js
View
1  lib/mysql.js
@@ -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 \
Something went wrong with that request. Please try again.