Closed ricardoolsen closed 1 week ago
Thanks for the ticket! Can you provide the DDL/schema that causes the error? If I can reproduce the error I can investigate the issue in more detail.
Hi Karner!
I'm sorry, I cant't share it because it is an enterprise schema, not to be shared.
The schema has lots of relationships and constraints.
It has double foreign keys like two columns of the same table pointing to columns on another table. I think this can be the cause of the problem.
It has also a recursive relation: a colunm pointing to another on the same table.
Otherwise it is pretty normal stuff.
Will close this for now - if anyone has a reproducible schema feel free to reopen
Hi! Thanks for this useful tool.
I have encountered error retrieving constraints from a MySQL schema.
I was able to fix it by adding "limit 1" to a subquery from /database/mysql.go (line 149).
The error occured because the subquery was returning more than one row in my case. Best regards.