Skip to content

[Bug]: from_base64 function some results different from mysql #15904

Closed

Description

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

10400a9

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

1.from_base64 argument is not a valid base-64 string reported error,but mysql return null
mo:
mysql> select from_base64('@#%#$^jfe12');
ERROR 1105 (HY000): illegal base64 data at input byte 0
mysql> select from_base64(-123);
ERROR 1105 (HY000): illegal base64 data at input byte 0

mysql:
企业微信截图_3df526d1-6be4-445d-9330-72f0d6eeeb2d
企业微信截图_8b9d51e1-35c1-4a3e-92a5-09d37e32a292

2.from_base64('') result is different from mysql
mo:
mysql> select from_base64('');
+---------------+
| from_base64() |
+---------------+
| |
+---------------+
1 row in set (0.00 sec)
mysql:
企业微信截图_c2604093-4db1-49f0-bd85-66d8d9317b9e

Expected Behavior

No response

Steps to Reproduce

select from_base64('@#%#$^jfe12');
select  from_base64(-123);
select from_base64('');

Additional information

No response

Activity

  1. ghost added
    kind/bug
    on May 8, 2024
  2. ghost added this to the 1.2.0 milestone on May 8, 2024
  3. ghost assigned on May 8, 2024
  4. arjunsk commented on May 8, 2024

    @arjunsk
    Contributor

    This PR will fix this issue:
    #15924

    The BVT changes are attached here

    image

  5. arjunsk commented on May 9, 2024

    @arjunsk
    Contributor

    merged to master.

  6. assigned and unassigned on May 9, 2024
  7. ghost added
    bvt
    on May 13, 2024
  8. ghost closed this as completedon May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bvtkind/bugphase/testing

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions