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

ALTER TABLE CHANGE COLUMN c1 c1 bigint NOT NULL - generates error if table uses SYSTEM VERSIONING

Details

    Description

      If you issue an ALTER TABLE to make a column that is a foreign key NOT NULL you get the following error:

      Cannot change column 'c1': used in a foreign key constraint 'p2c_ibfk_1'
      

      In prior versions of MariaDB this was allowed and did not generate an error. Further, if you issue an ALTER TABLE to make a column that is a foreign key NULLable you do NOT get any error message.

      Attachments

        Issue Links

          Activity

            Transition Time In Source Status Execution Times
            Aleksey Midenkov made transition -
            Open In Progress
            28d 13h 42m 1
            Aleksey Midenkov made transition -
            In Progress Stalled
            3d 19h 35m 1
            Aleksey Midenkov made transition -
            Stalled In Progress
            6h 20m 2
            Aleksey Midenkov made transition -
            In Progress In Review
            4d 5h 8m 2
            Marko Mäkelä made transition -
            In Review Stalled
            32d 18h 17m 2
            Marko Mäkelä made transition -
            Stalled Closed
            1d 1h 17m 1

            People

              midenok Aleksey Midenkov
              rdyas Robert Dyas
              Votes:
              0 Vote for this issue
              Watchers:
              5 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.