Check the correct serialization failure code when retrying transaction

This commit is contained in:
Antonio Scandurra 2022-11-28 13:56:03 +01:00
parent 4c1b4953c1
commit ae11e4f798

View file

@ -2520,7 +2520,7 @@ where
.as_database_error()
.and_then(|error| error.code())
.as_deref()
== Some("hey") =>
== Some("40001") =>
{
// Retry (don't break the loop)
}