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

Bad results for CREATE TABLE t1 (a INT DEFAULT b, b INT DEFAULT 4)

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.2(EOL)
    • 10.2.4
    • OTHER
    • 10.2.4-1, 10.2.4-2

    Description

      I'm testing the MDEV-10134 feature tree, branch bb-10.2-default.

      This script:

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a INT DEFAULT b, b INT DEFAULT 4);
      INSERT INTO t1 VALUES (DEFAULT,5);
      SELECT * FROM t1;
      

      returns

      +-------------+------+
      | a           | b    |
      +-------------+------+
      | -1886417009 |    5 |
      +-------------+------+
      

      Looks wrong, most likely some non-initialized data gets written into the column "a".

      Attachments

        Issue Links

          Activity

            bar Alexander Barkov created issue -
            bar Alexander Barkov made changes -
            Field Original Value New Value
            bar Alexander Barkov made changes -
            Description I'm testing the MDEV-7563 feature tree, branch bb-10.2-default.

            This script:
            {code:sql}
            DROP TABLE IF EXISTS t1;
            CREATE TABLE t1 (a INT DEFAULT b, b INT DEFAULT 4);
            INSERT INTO t1 VALUES (DEFAULT,5);
            SELECT * FROM t1;
            {code}
            returns
            {noformat}
            +-------------+------+
            | a | b |
            +-------------+------+
            | -1886417009 | 5 |
            +-------------+------+
            {noformat}

            Looks wrong, most likely some non-initialized data gets written into the column "a".
            I'm testing the MDEV-10134 feature tree, branch bb-10.2-default.

            This script:
            {code:sql}
            DROP TABLE IF EXISTS t1;
            CREATE TABLE t1 (a INT DEFAULT b, b INT DEFAULT 4);
            INSERT INTO t1 VALUES (DEFAULT,5);
            SELECT * FROM t1;
            {code}
            returns
            {noformat}
            +-------------+------+
            | a | b |
            +-------------+------+
            | -1886417009 | 5 |
            +-------------+------+
            {noformat}

            Looks wrong, most likely some non-initialized data gets written into the column "a".

            MDEV-10134 has been finished now, but this issue still exists.

            elenst Elena Stepanova added a comment - MDEV-10134 has been finished now, but this issue still exists.
            serg Sergei Golubchik made changes -
            Assignee Michael Widenius [ monty ] Sergei Golubchik [ serg ]
            serg Sergei Golubchik made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            ratzpo Rasmus Johansson (Inactive) made changes -
            Sprint 10.2.4-1 [ 132 ]
            ratzpo Rasmus Johansson (Inactive) made changes -
            Rank Ranked lower
            serg Sergei Golubchik made changes -
            Status In Progress [ 3 ] Stalled [ 10000 ]
            elenst Elena Stepanova made changes -
            Labels 10.2-ga
            ratzpo Rasmus Johansson (Inactive) made changes -
            Sprint 10.2.4-1 [ 132 ] 10.2.4-1, 10.2.4-2 [ 132, 134 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.2.4 [ 22116 ]
            Fix Version/s 10.2 [ 14601 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 75935 ] MariaDB v4 [ 150500 ]

            People

              serg Sergei Golubchik
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.