-
Notifications
You must be signed in to change notification settings - Fork 8
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
Mysql pads PGP keys with zeros if they are less than 16 characters #177
Comments
It really shouldn't do that. GPG will interpret this very incorrectly, and try to use the key of id MySQL makes me very sad. |
This is expected behaviour in MySQL http://dev.mysql.com/doc/refman/5.0/en/binary-varbinary.html There are a couple of solutions to this.
|
Does SQLite3 and everything else we support (I think mariadb also is supported) use VARBINARY? If so, that sounds like a viable option. |
Upon searching sqlite's site for VARBINARY, I get no response.
Upon searching sqlite's site for BINARY, I get a response.
I only searched for BINARY to make sure that they did have that documentation on their site. |
Another option is to just use VARCHAR. I'd rather not do anything right now until we get opinions from people. |
I'd say VARCHAR. |
I'm going to check exactly how they're stringified real quick. It's possible that this is more easily fixed in Go. |
Example: CAFEBABE -> CAFEBABE00000000
nil -> 0000000000000000
The text was updated successfully, but these errors were encountered: