Merge pull request #701 from github/gh-ost/patch-1

inspect: remove redundant join conditions
This commit is contained in:
Shlomi Noach 2019-01-28 08:26:34 +02:00 committed by GitHub
commit 0d773f7b3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -622,8 +622,6 @@ func (this *Inspector) getCandidateUniqueKeys(tableName string) (uniqueKeys [](*
GROUP BY TABLE_SCHEMA, TABLE_NAME, INDEX_NAME
) AS UNIQUES
ON (
COLUMNS.TABLE_SCHEMA = UNIQUES.TABLE_SCHEMA AND
COLUMNS.TABLE_NAME = UNIQUES.TABLE_NAME AND
COLUMNS.COLUMN_NAME = UNIQUES.FIRST_COLUMN_NAME
)
WHERE