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

decimal type in show create table is not same as MySQL #7665

Closed
imtbkcat opened this issue Sep 11, 2018 · 0 comments
Closed

decimal type in show create table is not same as MySQL #7665

imtbkcat opened this issue Sep 11, 2018 · 0 comments
Assignees

Comments

@imtbkcat
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    If possible, provide a recipe for reproducing the error.

       create table decimalschema(x decimal(15));
       show create table decimalschema;
    
  2. What did you expect to see?

     +---------------+-------------------------------------------------------------------------------- 
    ----------------------------------------------+
     | Table         | Create Table                                                                                                                 |
     +---------------+-------------------------------------------------------------------------------- 
    ----------------------------------------------+
     | decimalschema | CREATE TABLE `decimalschema` (
       `x` decimal(15,0) DEFAULT NULL
     ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci |
     +---------------+-------------------------------------------------------------------------------- 
    ----------------------------------------------+
     1 row in set (0.00 sec)
    
  3. What did you see instead?

     +---------------+-------------------------------------------------------------------------------- 
    ----------------------------------------------+
     | Table         | Create Table                                                                                                                 |
     +---------------+-------------------------------------------------------------------------------- 
    ----------------------------------------------+
     | decimalschema | CREATE TABLE `decimalschema` (
       `x` decimal(15) DEFAULT NULL
     ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci |
     +---------------+-------------------------------------------------------------------------------- 
    ----------------------------------------------+
     1 row in set (0.00 sec)
    
  4. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?
    v2.1.0

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

1 participant