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

type year should have an unsigned flag #7537

Closed
jackysp opened this issue Aug 29, 2018 · 1 comment
Closed

type year should have an unsigned flag #7537

jackysp opened this issue Aug 29, 2018 · 1 comment
Assignees

Comments

@jackysp
Copy link
Member

jackysp commented Aug 29, 2018

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    If possible, provide a recipe for reproducing the error.
mysql> show create table testyear;
+----------+-------------------------------------------------------------------------------------------+
| Table    | Create Table                                                                              |
+----------+-------------------------------------------------------------------------------------------+
| testyear | CREATE TABLE `testyear` (
  `i` year(4) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
+----------+-------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
mysql> select * from testyear;
Field   1:  `i`
Catalog:    `def`
Database:   `test`
Table:      `testyear`
Org_table:  `testyear`
Type:       YEAR
Collation:  binary (63)
Length:     4
Max_length: 0
Decimals:   0
Flags:      UNSIGNED ZEROFILL NUM 


0 rows in set (0.00 sec)
  1. What did you expect to see?
    Flags: UNSIGNED ZEROFILL NUM

  2. What did you see instead?
    Flags: ZEROFILL NUM

  3. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?
    eec6899

@zhexuany
Copy link
Contributor

@jackysp title is kinda confusing. Do you mean "type year should have an unsigned flag, but it does not have currently"?

@jackysp jackysp changed the title type year has an unsigned flag type year should have an unsigned flag Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants