forked from bitcoin-abe/bitcoin-abe
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
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
bb4b252
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 hardly think that will be supported by other databases. I really don't like the idea of having to explicitly pass binary data onto a binary column as binary to avoid utf-8 interpretation, this is counter-productive!
The proper fix for this would be to implement the _binary flag in the conversion functions, fortunately there's an even easier way. It seems like you can use this statement at connect time to set the proper default collation:
If you implement this in a patch, just make sure it also handle reconnections properly - the statement will have to be sent on reconnect too!
NB: It's probably best to use this statement only when using binary data storage.