Backport PR #25024 on branch 0.24.x (REGR: fix read_sql delegation for queries on MySQL/pymysql)
State: closed

Backport PR #25024: REGR: fix read_sql delegation for queries on MySQL/pymysql

Labels:
name: Regression
description: Functionality that used to work in a prior pandas version
name: IO SQL
description: to_sql, read_sql, read_sql_query

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25064?src=pr&el=h1) Report
> Merging [#25064](https://codecov.io/gh/pandas-dev/pandas/pull/25064?src=pr&el=desc) into [0.24.x](https://codecov.io/gh/pandas-dev/pandas/commit/e3634b1fcc483e5dda3a7b5b166690893a0ac4da?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/25064/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/25064?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           0.24.x   #25064   +/-   ##
=======================================
  Coverage   92.37%   92.37%           
=======================================
  Files         166      166           
  Lines       52397    52397           
=======================================
  Hits        48400    48400           
  Misses       3997     3997
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.79% <ø> (ø)` | :arrow_up: |
| #single | `42.88% <ø> (ø)` | :arrow_up: |


------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25064?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25064?src=pr&el=footer). Last update [e3634b1...3ff1aad](https://codecov.io/gh/pandas-dev/pandas/pull/25064?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25064?src=pr&el=h1) Report
> Merging [#25064](https://codecov.io/gh/pandas-dev/pandas/pull/25064?src=pr&el=desc) into [0.24.x](https://codecov.io/gh/pandas-dev/pandas/commit/e3634b1fcc483e5dda3a7b5b166690893a0ac4da?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/25064/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/25064?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           0.24.x   #25064   +/-   ##
=======================================
  Coverage   92.37%   92.37%           
=======================================
  Files         166      166           
  Lines       52397    52397           
=======================================
  Hits        48400    48400           
  Misses       3997     3997
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.79% <ø> (ø)` | :arrow_up: |
| #single | `42.88% <ø> (ø)` | :arrow_up: |


------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25064?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25064?src=pr&el=footer). Last update [e3634b1...3ff1aad](https://codecov.io/gh/pandas-dev/pandas/pull/25064?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).