Skip to content

Commit

Permalink
0001227: Reading of MySQL tables can sometimes include the PRIMARY in…
Browse files Browse the repository at this point in the history
…dex if the primary key columns aren't at the start
  • Loading branch information
chenson42 committed May 16, 2013
1 parent fb83c96 commit 72115ad
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -107,7 +107,7 @@ protected Column readColumn(DatabaseMetaDataWrapper metaData, Map<String, Object
protected boolean isInternalPrimaryKeyIndex(Connection connection,
DatabaseMetaDataWrapper metaData, Table table, IIndex index) {
// MySql defines a unique index "PRIMARY" for primary keys
return "PRIMARY".equals(index.getName()) || "PRIMARYINDEX".equals(index.getName());
return "PRIMARY".equals(index.getName());
}

@Override
Expand Down

0 comments on commit 72115ad

Please sign in to comment.