Skip to content

Commit

Permalink
fix issue with mysql connection query
Browse files Browse the repository at this point in the history
  • Loading branch information
KarnerTh committed Apr 15, 2022
1 parent d699f35 commit db349dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (c mySqlConnector) GetConstraints(tableName string) ([]ConstraintResult, er
from information_schema.KEY_COLUMN_USAGE kc
left join information_schema.KEY_COLUMN_USAGE kc2
ON kc.COLUMN_NAME = kc2.COLUMN_NAME AND kc2.CONSTRAINT_NAME = 'PRIMARY' AND
kc2.TABLE_NAME = c.TABLE_NAME
kc2.TABLE_NAME = kc.TABLE_NAME
where kc.CONSTRAINT_NAME = c.CONSTRAINT_NAME
) "isPrimary",
(
Expand Down

0 comments on commit db349dc

Please sign in to comment.