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

[11 Jan 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 6:47] MySQL Verification Team
Hello Daniël,

Thank you for the report and feedback.

regards,
Umesh