-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
types: convert to new charset before inserting to blob or json column #31031
Merged
Merged
Changes from 18 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
8957427
*: handle binary literal in ConvertTo
tangenta c498431
move string encoding to ConvertTo
tangenta a9d5e40
Merge remote-tracking branch 'upstream/master' into handle-bin
tangenta 28feb98
types: rename from/to binary string convert function
tangenta fe83773
update errors.toml
tangenta 5fec742
Merge remote-tracking branch 'upstream/master' into handle-bin
tangenta 950353b
types: add tests for binary handling
tangenta 56e1ad3
extract find encoding accoring to statement context
tangenta e80da98
address comment
tangenta dc70c0e
Merge remote-tracking branch 'upstream/master' into handle-bin
tangenta 7cf31bd
fix integration test TestChangeFromBitToStringInvalidUtf8ErrMsg
tangenta f602ff6
util: ignore invalid string constructed by like expression
tangenta aea0725
Merge remote-tracking branch 'upstream/master' into handle-bin
tangenta a968c6f
add comment
tangenta 35106fd
Merge remote-tracking branch 'upstream/master' into handle-bin
tangenta 178557a
fix typo
tangenta fc852db
Merge branch 'master' into handle-bin
tangenta e6a5bc9
fix TestConvertToBinaryString
tangenta 3d7574a
charset: use OpReplaceNoErr if possible
tangenta a3cc79d
Merge branch 'master' into handle-bin
ti-chi-bot b677fe1
Merge branch 'master' into handle-bin
ti-chi-bot 0c00650
fix build
tangenta f7cbf37
Merge branch 'master' into handle-bin
ti-chi-bot 6b2304f
Merge branch 'master' into handle-bin
ti-chi-bot 19a841e
Merge branch 'master' into handle-bin
ti-chi-bot 2f83619
Merge branch 'master' into handle-bin
ti-chi-bot 4bc51f8
Merge branch 'master' into handle-bin
ti-chi-bot f4eae87
Merge branch 'master' into handle-bin
ti-chi-bot fa4be5e
Merge branch 'master' into handle-bin
ti-chi-bot 5b5c0ab
Merge branch 'master' into handle-bin
ti-chi-bot 958d55a
Merge branch 'master' into handle-bin
ti-chi-bot d96bcde
skip utf8 encode before insert to blob type
tangenta cf1109e
Merge branch 'master' into handle-bin
ti-chi-bot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
It's not same as MySQL.
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 think it is OK to have this difference?
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.
Em... Not sure. Seems we had a PR to fix it before. #25087
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 PR does not introduce the garbled code as described in #25087. It extracts the error message from
ErrInvalidCharacterSet
(which should be in a well format).The only difference is the number of invalid bytes displayed.