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

executor: Error message is inconsistent with MySQL when execute insert into operationn #24927

Open
yuqi1129 opened this issue May 27, 2021 · 1 comment · May be fixed by #24938
Open

executor: Error message is inconsistent with MySQL when execute insert into operationn #24927

yuqi1129 opened this issue May 27, 2021 · 1 comment · May be fixed by #24938
Labels
severity/minor sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@yuqi1129
Copy link
Contributor

yuqi1129 commented May 27, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

CREATE TABLE `t1` (
  `id` int(11) NOT NULL,
  `name` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`) /*T![clustered_index] CLUSTERED */
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin

 insert into t1 select '11111111111111111111111111111111111', 'x';

2. What did you expect to see? (Required)

mysql> insert into t1 select '11111111111111111111111111111111111', 'x';
ERROR 1264 (22003): Out of range value for column 'id' at row 1

3. What did you see instead (Required)

mysql> insert into t1 select '11111111111111111111111111111111111', 'x';
ERROR 1690 (22003): BIGINT value is out of range in '1111111111111111111111111111111111

4. What is your TiDB version? (Required)

Master branch

@yuqi1129 yuqi1129 added the type/bug The issue is confirmed as a bug. label May 27, 2021
@yuqi1129
Copy link
Contributor Author

Seems that like the following sql also have the same problem

insert into t1 select 'x', 'x';
insert into t1 select 'x1', 'x';

is this problem need to be fixed ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/minor sig/execution SIG execution type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants