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

Do not truncate data for integer. #3170

Closed
shenli opened this issue Apr 28, 2017 · 0 comments
Closed

Do not truncate data for integer. #3170

shenli opened this issue Apr 28, 2017 · 0 comments
Labels
type/bug The issue is confirmed as a bug.

Comments

@shenli
Copy link
Member

shenli commented Apr 28, 2017

We do not need to truncate data for integer.

mysql> create table t2 (c int(1));
Query OK, 0 rows affected (0.06 sec)

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

mysql> select * from t2;
+-------+
| c |
+-------+
| 12345 |
+-------+
1 row in set (0.00 sec)

mysql>

@shenli shenli added the type/bug The issue is confirmed as a bug. label Apr 28, 2017
@shenli shenli closed this as completed Apr 28, 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

1 participant