|
Burkhard Graves I think what you describe is different than the intent of Dialect#hasSelfReferentialForeignKeyBug. Dialect#hasSelfReferentialForeignKeyBug, iiuc, was meant to cover cases where MySQL could not handle deleting rows from tables with self-referential FKs where a FK referenced an existing row even if that row was being deleted as part of the same query. Taking your example table and dropping the CASCADE part, executing delete from test used to fail on older MySQL versions because row with PK 2 could not be deleted.
|