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

Auto Increment on create can be set above column range

    XMLWordPrintable

Details

    Description

      Such query should be blocked:

      CREATE TABLE `products` (
        `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
        `name` varchar(255) NOT NULL,
        PRIMARY KEY (`id`)
      ) ENGINE=InnoDB AUTO_INCREMENT=9999999999999 DEFAULT CHARSET=utf8;

      Attachments

        Activity

          People

            Unassigned Unassigned
            michal.zubkowicz Michal Zubkowicz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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