# RFC: PDO MySQL get warning count

- Thread: https://externals.io/message/113291
- Original archive: https://news-web.php.net/php.internals/113291
- Started by Daniel Beardsley on 2021-02-26T16:45:11+00:00
- Messages: 2
- RFC: Add PDO function: mysqlGetWarningCount (Inactive) — https://externals.io/rfc/pdo-mysql-get-warning-count.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #113291 — Daniel Beardsley — 2021-02-26T16:45:11+00:00

URL: https://externals.io/message/113291#113291

Hi,

I've gotten very little feedback on the "should I make an RFC about this?"
question, so I went ahead and made an RFC:
https://wiki.php.net/rfc/pdo-mysql-get-warning-count

This is about a feature in an open pull request:
https://github.com/php/php-src/pull/6677
which addresses an open issue in the bug tracker:
https://bugs.php.net/bug.php?id=51499

Thanks for your consideration!

Daniel

---

## #113292 — Claude Pache — 2021-02-26T17:33:18+00:00

URL: https://externals.io/message/113291#113292 · In reply to: #113291

> Le 26 févr. 2021 à 17:45, Daniel Beardsley <dbeardsl@gmail.com> a écrit :
> 
> Hi,
> 
> I've gotten very little feedback on the "should I make an RFC about this?"
> question, so I went ahead and made an RFC:
> https://wiki.php.net/rfc/pdo-mysql-get-warning-count
> 
> This is about a feature in an open pull request:
> https://github.com/php/php-src/pull/6677
> which addresses an open issue in the bug tracker:
> https://bugs.php.net/bug.php?id=51499
> 
> Thanks for your consideration!
> 
> Daniel


Hi,

Warning count is one of the feature of mysqli that is missing in PDO. Last time I checked, there was no equivalent of `mysqli_info()`, which allows me (among other things) to retrieve the number of matched rows (in addition to the number of affected rows), and this is a blocker for me for switching from mysqli to PDO (in case I would want to switch for some reason).

It may be appropriate to review other useful features of mysqli that are missing in PDO?

—Claude
