Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Issue 31437 with keyword query error mysql #34163
Issue 31437 with keyword query error mysql #34163
Changes from 15 commits
8544d67
1653664
2029eaf
068962b
f973677
027ea9f
6c8660a
88a1300
e2e18ea
ab34b8e
6a2640c
2b0c960
52f639f
949ff51
a27ede2
893cea5
7fbb92f
5023a65
c340ae3
791c956
7a9cd89
ff11f5e
aa99360
03cc31d
01f9e2f
30e3647
0e7a6f1
d32b7d4
67df1d8
56147e3
58d2c21
ce53b70
c77d035
30e9acd
d9ea315
b9131f7
5acbb84
761355a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Does this check happen in MySQL? If yes, please provide MySQL test results.
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.
I have changed the logic for UniqueCommonTableAlias check
This check happens in MySQL but in ShardingSphere this check was happening while the query is executed in MySQL database so I have added this check during the creation of Query Context.
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.
Please use
Collection<CaseInsensitiveString>
to replaceSet<CaseInsensitiveString>
.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.
Besides, dou you think CaseInsensitiveSet is better?
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.
Now I am using
Collection<String> commonTableExpressionsSegmentsUniqueAliases = new CaseInsensitiveSet<>();
CaseInsensitiveSet will be better as it ease the overhead of creating the object in case of Set