Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-4006

ALTER COLUMN ... WITH DEFAULT NULL does not change the default

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.2.2.0, 10.3.1.4, 10.3.2.1, 10.3.3.0, 10.4.1.3, 10.4.2.0
    • Fix Version/s: 10.4.2.1, 10.5.1.1
    • Component/s: SQL
    • Labels:
      None
    • Bug behavior facts:
      Regression

      Description

      Reported on derby-user.
      http://mail-archives.apache.org/mod_mbox/db-derby-user/200901.mbox/%3c21349727.post@talk.nabble.com%3e

      ij> create table t (x varchar(5) default 'abc');
      0 rows inserted/updated/deleted
      ij> alter table t alter column x with default null;
      0 rows inserted/updated/deleted
      ij> insert into t values default;
      1 row inserted/updated/deleted
      ij> select * from t;
      X


      abc

      1 row selected

        Attachments

        1. tenFourPatch.diff
          5 kB
          Bryan Pendleton
        2. quickCodePatch.diff
          2 kB
          Bryan Pendleton
        3. patchWithTest.diff
          4 kB
          Bryan Pendleton
        4. addGenColTest.diff
          6 kB
          Bryan Pendleton

          Activity

            People

            • Assignee:
              bryanpendleton Bryan Pendleton
              Reporter:
              knutanders Knut Anders Hatlen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: