-
Notifications
You must be signed in to change notification settings - Fork 75
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
Conversation
e773891
to
e7ee31b
Compare
Still WIP |
02a3357
to
fe8cae9
Compare
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.
fe8cae9
to
d66c90d
Compare
PR is finished, any feedback? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks ok to me on first glance. Is there a bigger plan or are you only adding tests?
@dveeden I have a bigger plan, because the situation isn't clean for me.
btw: I am for creating releases after some changes to check situation in real world. |
Things to consider when working on UTF-8:
|
cc @Grinnz |
I read this. It's misleading from my side, too. The usage of utf8::upgrade and utf8::downgrade is a very problematic thing at all.
yes, I am for. Working on it.
I know.
Yes, I know. Too many changes at one release are the biggest issue.
Yes, I know.
Yes, I know. This is a bit confusing, but I think this is possible. |
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:
There are three runs of all tests in both test files:
There are XXX comments for situations which not follow
mysql_enable_utf8/mb4 option.