Fix broken test after mysql 8 minor version breakage
@@ -404,8 +404,9 @@ async fn unique_constraint_errors_in_migrations_must_return_a_known_error(api: &
let json_error = serde_json::to_value(&error).unwrap();
- let field_name = match api.sql_family() {
- SqlFamily::Mysql => "Fruit.name",
+ let field_name = match (api.sql_family(), api.connector_name()) {
+ (SqlFamily::Mysql, "mysql_8") => "Fruit.Fruit.name",
+ (SqlFamily::Mysql, _) => "Fruit.name",
_ => "name",
};
