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

Parse int literal failed. #2402

Closed
shenli opened this issue Jan 5, 2017 · 0 comments
Closed

Parse int literal failed. #2402

shenli opened this issue Jan 5, 2017 · 0 comments
Assignees
Labels
type/bug The issue is confirmed as a bug.

Comments

@shenli
Copy link
Member

shenli commented Jan 5, 2017

On TiDB:
mysql> create table tt (c1 int(11) UNSIGNED DEFAULT NULL);
Query OK, 0 rows affected (0.12 sec)

mysql> insert into tt values (01000001783);
ERROR 1105 (HY000): line 0 column 34 near ")"integer literal: strconv.ParseUint: parsing "01000001783": invalid syntax

On MySQL:
mysql> create table tt (c1 int(11) UNSIGNED DEFAULT NULL);
Query OK, 0 rows affected (0.14 sec)

mysql> insert into tt values (01000001783);
Query OK, 1 row affected (0.01 sec)

@shenli shenli added the type/bug The issue is confirmed as a bug. label Jan 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

2 participants