We should rely on AbstractMysqlAdapter's #execute method so that we pull in the allow_retry option.
When set to true, the SQL statement will be retried, up to the database's configured connection_retries value, upon encountering connection-related errors.
We should rely on
AbstractMysqlAdapter
's#execute
method so that we pull in theallow_retry
option.When set to
true
, the SQL statement will be retried, up to the database's configuredconnection_retries
value, upon encountering connection-related errors.This option is supported on
AbstractAdapter
and the other adapters upstream, as of https://github.com/rails/rails/pull/46273.