Skip to content

[Bug]: other charset characters recognition #3187

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):e1319c52cf87b17a98008ae0dda79b72237d9ed1
- Hardware parameters:Mac M1 ARM 16GB Memory
- OS type:OSX
- Others:

Actual Behavior

Error message: Data too long for column 'C1' at row 1

Expected Behavior

this string is not long, it's simply other charset.

Steps to Reproduce

drop table if exists `T1`;
CREATE TABLE `T1` (`C1` char(8));
INSERT INTO `T1` VALUES ('アイウエオ');

Additional information

No response

Activity

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

    @JinHai-CN
    Contributor

    In current charset setting, the inserted string is considered exceeding the char limit.

  5. modified the milestones: v0.5.0, v0.6.0 on Jun 24, 2022
  6. JinHai-CN commented on Jun 26, 2022

    @JinHai-CN
    Contributor

    I can't find #3187 tag in the test cases. Would you please double check it? @dengn

  7. 2 remaining items

  8. added a commit that references this issue on Jun 27, 2022
  9. assigned and unassigned on Jun 28, 2022
  10. changed the title [-][Bug]: Wrong err message for other charset characters[/-] [+][Bug]: other charset characters recognition[/+] on Jul 4, 2022
  11. dengn commented on Jul 4, 2022

    @dengn
    ContributorAuthor

    OK for 0.6 to recognize this encoding.

  12. added
    severity/s1
    on Aug 10, 2022
  13. aressu1985 commented on Oct 24, 2022

    @aressu1985
    Contributor

    mysql> drop table if exists T1;
    Query OK, 0 rows affected (0.00 sec)

    mysql> CREATE TABLE T1 (C1 char(8));
    Query OK, 0 rows affected (0.01 sec)

    mysql> INSERT INTO T1 VALUES ('アイウエオ');
    Query OK, 1 row affected (0.00 sec)

    mysql>
    mysql> select * from T1;
    +-----------------+
    | C1 |
    +-----------------+
    | アイウエオ |
    +-----------------+
    1 row in set (0.01 sec)

    mysql>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bvtkind/bugseverity/s1triage/accepted

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions