Skip to content
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

bug of builtin func from_base64() #3056

Closed
woodpenker opened this issue Apr 14, 2017 · 1 comment
Closed

bug of builtin func from_base64() #3056

woodpenker opened this issue Apr 14, 2017 · 1 comment

Comments

@woodpenker
Copy link
Contributor

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?

the mysql required:
Decoding recognizes and ignores newline, carriage return, tab, and space.
the go base64 DecodeString() doesn't ignore tab ,space

  1. What did you expect to see?
    in mysql:
    select from_base64("YW Jj");
    +-----------------------+
    | from_base64("YW Jj") |
    +-----------------------+
    | abc |
    +-----------------------+
    1 row in set (0.01 sec)

  2. What did you see instead?
    in tidb:
    select from_base64("YW Jj");
    ERROR 1105 (HY000): illegal base64 data at input byte 2

  3. What version of Go are you using (go version)?
    go 1.7.3

**so I fix it -> please refer to the PR

@tiancaiamao
Copy link
Contributor

Fixed in #3070

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants