Skip to content

Commit

Permalink
0003892: MySQL Version 8 returning error code 1216 when foreign key
Browse files Browse the repository at this point in the history
constraint is violated (used to be 1452)
  • Loading branch information
philipmarzullo64 committed Mar 22, 2019
1 parent a975b40 commit 672b2f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public MySqlJdbcSqlTemplate(DataSource dataSource, SqlTemplateSettings settings,
super(dataSource, settings, lobHandler, databaseInfo);
primaryKeyViolationCodes = new int[] {1062};
uniqueKeyViolationNameRegex = new String[] { "Duplicate entry .* for key '(.*)'" };
foreignKeyViolationCodes = new int[] {1452};
foreignKeyViolationCodes = new int[] {1452, 1216};
foreignKeyChildExistsViolationCodes = new int[] {1451};
}

Expand Down

0 comments on commit 672b2f1

Please sign in to comment.