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

Unique hash key is ignored upon INSERT ... SELECT into non-empty MyISAM table

    XMLWordPrintable

Details

    Description

      The patch from MDEV-23264 (bb-10.4-MDEV-23264 b2eb92843c) does not fix it.

      --source include/have_sequence.inc
       
      create or replace table t (a int, b text, unique(b)) engine=MyISAM;
      insert into t values (0,'aa');
      insert into t (a,b) select 1,'xxx' from seq_1_to_5;
      select * from t;
       
      # Cleanup
      drop table t;
      

      10.4 f0107c90

      insert into t (a,b) select 1,'xxx' from seq_1_to_5;
      select * from t;
      a	b
      0	aa
      1	xxx
      1	xxx
      1	xxx
      1	xxx
      1	xxx
      

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              elenst Elena Stepanova
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 1h
                  1h

                  Git Integration

                    Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.