Add charsetnr to Mysql::Result - #24
Open
peterkovacs wants to merge 2 commits into
Open
peterkovacs wants to merge 2 commits into
peterkovacs wants to merge 2 commits into
Conversation
`charsetnr` is (appears to be?) the only way to tell the difference between two fields like this: ``` field_a VARCHAR(255) COLLATE utf8_bin, field_b VARBINARY(255) ``` Having `charsetnr` makes determining the difference between these two field types to be quite trivial.
Owner
|
Hello @peterkovacs, can you add a test that verifies this? Thank you. |
Unfortunately the constants for `charsetnr` do not seem to be exported as part of the Mysql API. They are enumerated here: http://dev.mysql.com/doc/internals/en/charsets.html
Author
|
Hi @luislavena -- I'm not sure how fixed the constants are going to be across various installations of mysql. This test passes in my environment with mysql 5.5.33. The mysql API doesn't seem to export these constants, but they are documented here: http://dev.mysql.com/doc/internals/en/charsets.html Should they be enumerated in the gem? |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
charsetnris (appears to be?) the only way to tell the difference between two fields like this:Having
charsetnrmakes determining the difference between these two field types to be quite trivial.