[php-src] Issue #8004: Misleading PDO error message ‹Invalid datetime format›
| From: | etkaar | Date: | Wed, 26 Jan 2022 15:29:38 +0000 |
| Subject: | [php-src] Issue #8004: Misleading PDO error message ‹Invalid datetime format› | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239302@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8004
Comment Author: etkaar
The error message is suffixed by an additional error message _Invalid datetime format_, so the
output is not the same.
Still, the error seems to come from MySQL as number 22007 refers to this message. PDO prepends this
message, but this seems to be intended behaviour. However: Why are there two different error
messages (from MySQL)?