Bug #102220 Error codes in mysql.connector.errorcode are not up to date.
Submitted: 11 Jan 2021 16:54 Modified: 11 May 2022 15:15
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / Python Severity:S2 (Serious)
Version:8.0.22 OS:Any
Assigned to: CPU Architecture:Any

[11 Jan 2021 16:54] Daniël van Eeden
Description:
I would expect the list to mostly match what is on https://dev.mysql.com/doc/mysql-errors/8.0/en/server-error-reference.html but newer error codes seem to be missing.

I found this when looking for ER_CLONE_DONOR

How to repeat:
Python 3.9.1 (default, Dec  8 2020, 00:00:00) 
[GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mysql.connector
>>> mysql.connector.__version__
'8.0.22'
>>> mysql.connector.errorcode._MYSQL_VERSION
(8, 0, 11)
>>> mysql.connector.errorcode._GENERATED_ON
'2018-03-16'
>>> 
>>>
[12 Jan 2021 6:47] MySQL Verification Team
Hello Daniël,

Thank you for the report and feedback.

regards,
Umesh
[11 May 2022 15:14] Philip Olson
Posted by developer:
 
This was fixed in 8.0.23 with a related update, and the release note is:

  Updated associated MySQL server error messages and codes to the
  latest version.

Thank you for the bug report, and we're sorry for the delayed status update.
[11 May 2022 15:15] Philip Olson
Status->Closed.