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)

    XMLWordPrintable

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

            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.