Skip to content

[Bug]: cast TEXT to Varchar failed with larger value #23176

Closed

Description

@zhangxu19830126

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

latest

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

internal error: Can't cast column from TEXT type to CHAR type because of one or more values in that column. Src length 260 is larger than Dest length 255.

Expected Behavior

Text cast to varchar cannot failed by length is too bigger

Steps to Reproduce

1. create a table with a text column
2. exec update statement, and using CONCAT(COALESCE(`column`, ''), ?) to update TEXT column

Additional information

No response

Activity

  1. zhangxu19830126 commented on Nov 29, 2025

    @zhangxu19830126
    ContributorAuthor

    fixed

  2. ghost added a commit that references this issue on Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions