Skip to content

[Bug]: long int is taken as varchar #3155

Closed

Description

@dengn

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Environment

- Version or commit-id (e.g. v0.1.0 or 8b23a93):9cc17cef85daa97a6ef533796ce80357bd5c852c
- Hardware parameters: MAC M1 ARM 16GB
- OS type:OSX
- Others:

Actual Behavior

Operator 'unary_minus' with parameters [VARCHAR] will be implemented in future version.

Expected Behavior

lpad('hello', -18446744073709551616, '1')

Steps to Reproduce

select lpad('hello', -18446744073709551616, '1');

Additional information

No response

Activity

  1. added
    kind/bug
    on Jun 20, 2022
  2. added this to the v0.5.0 milestone on Jun 20, 2022
  3. added
    bvt
    on Jun 24, 2022
  4. JinHai-CN commented on Jul 4, 2022

    @JinHai-CN
    Contributor

    mysql> select lpad('hello', -18446744073709551616, '1');
    ERROR 1105 (HY000): Operator 'cast' with parameters [DECIMAL128 BIGINT] will be implemented in future version.

  5. assigned and unassigned on Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bvtkind/bugtriage/accepted

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions