Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-8659

Conflicting declaration is accepted: INT SIGNED ZEROFILL

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.5(EOL), 10.0(EOL), 10.1(EOL)
    • 10.2.8
    • Parser
    • None

    Description

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a INT SIGNED ZEROFILL);
      INSERT INTO t1 VALUES (-1);
      SHOW CREATE TABLE t1;

      +-------+---------------------------------------------------------------------------------------------------------+
      | Table | Create Table                                                                                            |
      +-------+---------------------------------------------------------------------------------------------------------+
      | t1    | CREATE TABLE `t1` (
        `a` int(10) unsigned zerofill DEFAULT NULL
      ) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
      +-------+---------------------------------------------------------------------------------------------------------+

      I.e. the "SIGNED" keyword was silently ignored.

      The expected behavior is to return an error.

      Attachments

        Activity

          People

            serg Sergei Golubchik
            bar Alexander Barkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.