Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for UTF8 characters in table definition and errors #467

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michal-josef-spacek
Copy link
Contributor

@michal-josef-spacek michal-josef-spacek commented Mar 18, 2025

Add tests for UTF8 characters in table definition and errors
The tests are taken from DBD::MariaDB and adopted to DBD::mysql.

Testing is provided on Japanese and Chinese characters.

There are two test files:

  • one for testing of utf8/utf8mb4 identifiers
  • one for testing of utf8 error messages

There are three runs of all tests in both test files:

  • one without mysql_enable_utf8 option
  • one with enabled mysql_enable_utf8 option
  • one with enabled mysql_enable_utf8mb4 option

There are XXX comments for situations which not follow
mysql_enable_utf8/mb4 option.

@michal-josef-spacek
Copy link
Contributor Author

Still WIP

@michal-josef-spacek michal-josef-spacek force-pushed the add_utf8_jp_test branch 2 times, most recently from 02a3357 to fe8cae9 Compare March 31, 2025 12:18
@michal-josef-spacek michal-josef-spacek changed the title Add test for Japanese characters in table definition and errors Add tests for UTF8 characters in table definition and errors Mar 31, 2025
The tests are taken from DBD::MariaDB and adopted to DBD::mysql.

Testing is provided on Japanese and Chinese characters.

There are two test files:
* one for testing of utf8/utf8mb4 identifiers
* one for testing of utf8 error messages

There are three runs of all tests in both test files:
* one without mysql_enable_utf8 option
* one with enabled mysql_enable_utf8 option
* one with enabled mysql_enable_utf8mb4 option

There are XXX comments for situations which not follow
mysql_enable_utf8/mb4 option.
@michal-josef-spacek
Copy link
Contributor Author

PR is finished, any feedback?

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.

1 participant