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

importccl: normalize case of imported mysql table names #28397

Merged
merged 1 commit into from Aug 9, 2018

Conversation

dt
Copy link
Member

@dt dt commented Aug 8, 2018

MySQL quotes table named in its input but is still case-insensitive. Normalizing the names
when importing (to lowercase) should also meant that any unquoted name in cockroach will
match (since they'll be normalized before resolution).

Fixes #28036.

Release note (sql change): normalize case of mysqldump imported table names.

@dt dt requested review from maddyblue, knz and a team August 8, 2018 22:25
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I seem to recognize the change we've discussed, but what of the CI failures?

Reviewed 6 of 6 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

@dt
Copy link
Member Author

dt commented Aug 9, 2018

I think I took one last look at the testdata in my editor and then saved the file which mangled some of the non-unicode bytes? I donno, regenerating it seems to fix it.

MySQL quotes table named in its input but is still case-insensitive. Normalizing the names
when importing (to lowercase) should also meant that any unquoted name in cockroach will
match (since they'll be normalized before resolution).

Fixes cockroachdb#28036.

Release note (sql change): normalize case of mysqldump imported table names.
@dt
Copy link
Member Author

dt commented Aug 9, 2018

bors r+

craig bot pushed a commit that referenced this pull request Aug 9, 2018
28397: importccl: normalize case of imported mysql table names r=dt a=dt

MySQL quotes table named in its input but is still case-insensitive. Normalizing the names
when importing (to lowercase) should also meant that any unquoted name in cockroach will
match (since they'll be normalized before resolution).

Fixes #28036.

Release note (sql change): normalize case of mysqldump imported table names.

Co-authored-by: David Taylor <tinystatemachine@gmail.com>
@craig
Copy link
Contributor

craig bot commented Aug 9, 2018

Build succeeded

@craig craig bot merged commit cc16709 into cockroachdb:master Aug 9, 2018
@dt dt deleted the mysqlcase branch August 14, 2018 17:56
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.

None yet

4 participants