Skip to content

Conversation

dlenski
Copy link

@dlenski dlenski commented Feb 26, 2024

In db79350, @konrado0 modified get_schema_inconsistency_check to "remove[d] false positives related to full Unicode range."

It appears that the intention of this change was to ignore table names containing non-ASCII characters, since their names are represented differently in information_schema.tables and in information_schema.innodb_sys_tables. In the latter, disallowed characters are replaced with '@' plus 4 hexadecimal digits representing the character's Unicode codepoint.

However, the regular expression used for this (@[0-9]) was incorrect and incomplete: it will only exclude Unicode codepoints 0x0000-0x9ffff, and won't exclude Unicode codepoints 0xa000-0xffff. This commit fixes the mistake in the regular expression.

In the longer term, tables whose names contain non-ASCII characters should not be excluded from schema inconsistency checks.

This contribution is under the OCA signed by Amazon and covering submissions to the MySQL project.

… get_schema_inconsistency_check() for MySQL 5.7

In mysql@db79350,
Konrad Olesinski <konrad.olesinski@oracle.com> modified `get_schema_inconsistency_check` to
"remove[d] false positives related to full Unicode range."

It appears that the intention of this change was to ignore table names
containing non-ASCII characters, since their names are represented
differently in `information_schema.tables` and in
`information_schema.innodb_sys_tables`.  In the latter, disallowed
characters are replaced with '@' plus 4 hexadecimal digits representing the
character's Unicode codepoint.

However, the regular expression used for this (`@[0-9]`) was incorrect and
incomplete: it will *only* exclude Unicode codepoints 0x0000-0x9ffff, and
*won't* exclude Unicode codepoints 0xa000-0xffff. This commit fixes the
mistake in the regular expression.

In the longer term, tables whose names contain non-ASCII characters should
*not* be excluded from schema inconsistency checks.

This contribution is under the OCA signed by Amazon and covering
submissions to the MySQL project.
@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Please confirm this code is submitted under the terms of the OCA (Oracle's Contribution Agreement) you have previously signed by cutting and pasting the following text as a comment:
"I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it."
Thanks

@dlenski
Copy link
Author

dlenski commented Feb 26, 2024

I confirm the code being submitted is offered under the terms of the OCA signed by Amazon and covering submissions to the MySQL project, and that I am authorized to contribute it.

@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Your code has been assigned to an internal queue. Please follow
bug http://bugs.mysql.com/bug.php?id=114127 for updates.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants