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

Different error code from MySQL when inserting incorrect time value #20207

Closed
SunRunAway opened this issue Sep 24, 2020 · 6 comments · Fixed by #20847
Closed

Different error code from MySQL when inserting incorrect time value #20207

SunRunAway opened this issue Sep 24, 2020 · 6 comments · Fixed by #20847
Labels
challenge-program help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/moderate sig/execution SIG execution type/bug The issue is confirmed as a bug. type/compatibility

Comments

@SunRunAway
Copy link
Contributor

SunRunAway commented Sep 24, 2020

Description

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

drop table if exists t; create table t(a time); insert into t values(8385966);

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

Both MySQL 5.7 and MySQL 8.0 produces error code 1292

mysql> drop table if exists t; create table t(a time); insert into t values(8385966);
Query OK, 0 rows affected (0.02 sec)

Query OK, 0 rows affected (0.02 sec)

ERROR 1292 (22007): Incorrect time value: '8385966' for column 'a' at row 1

3. What did you see instead (Required)

mysql> drop table if exists t; create table t(a time); insert into t values(8385966);
Query OK, 0 rows affected (0.01 sec)

Query OK, 0 rows affected (0.01 sec)

ERROR 1366 (HY000): Incorrect time value: '8385966' for column 'a' at row 1

4. What is your TiDB version? (Required)

master (6a10e21)

SIG slack channel

#sig-exec

Score

  • 300

Mentor

@SunRunAway SunRunAway added type/bug The issue is confirmed as a bug. type/compatibility labels Sep 24, 2020
@gengliqi gengliqi added the sig/execution SIG execution label Sep 25, 2020
@lzmhhh123 lzmhhh123 added challenge-program help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Oct 30, 2020
@ou-bing
Copy link
Contributor

ou-bing commented Nov 2, 2020

@lzmhhh123 Why does this issue have 600 points,isn't it a simple "error code" problem?🤔

@ou-bing
Copy link
Contributor

ou-bing commented Nov 2, 2020

/pick-up

@ti-challenge-bot
Copy link

Pick up success.

@lzmhhh123
Copy link
Contributor

@lzmhhh123 Why does this issue have 600 points,isn't it a simple "error code" problem?🤔

Sorry, that's a mistake. Only 300 points for this issue. 😂

@ou-bing
Copy link
Contributor

ou-bing commented Nov 2, 2020

@lzmhhh123 Why does this issue have 600 points,isn't it a simple "error code" problem?🤔

Sorry, that's a mistake. Only 300 points for this issue. 😂

shoot oneself in the foot.😂😂😂

@ti-srebot
Copy link
Contributor

Please edit this comment to complete the following information

Not a bug

  1. Remove the 'type/bug' label
  2. Add notes to indicate why it is not a bug

Duplicate bug

  1. Add the 'type/duplicate' label
  2. Add the link to the original bug

Bug

Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100

1. Root Cause Analysis (RCA) (optional)

2. Symptom (optional)

3. All Trigger Conditions (optional)

4. Workaround (optional)

5. Affected versions

6. Fixed versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
challenge-program help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/moderate sig/execution SIG execution type/bug The issue is confirmed as a bug. type/compatibility
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants