Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-1256

LP Bug: 1461134 - ALTER TABLE DROP COLUMN does not check for dependent objects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 2.0-incubating
    • sql-cmu
    • None

    Description

      Before dropping a column, a check should be made for objects that depend on the column.

      Example:

      CREATE TABLE T1 (A INT NOT NULL PRIMARY KEY, B INT);
      CREATE VIEW V1 AS SELECT B FROM T1;
      ALTER TABLE T1 DROP COLUMN B; – should fail

      At a minimum RESTRICT behavior should be supported. Ideally, CASCADE would be supported as well.

      Attachments

        Activity

          People

            anoopsharma Anoop Sharma
            cliffgray Cliff Gray
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: