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

Wrong value in the error message for ER_NO_PARTITION_FOR_GIVEN_VALUE

    XMLWordPrintable

Details

    Description

      --source include/have_partition.inc
       
      create table t (a int) partition by list(a) (partition p0 values in (1,2));
      create table t1 (a int);
      insert into t1 values (3);
       
      alter table t exchange partition p0 with table t1;
       
      # Cleanup
      drop table if exists t1, t;
      

      10.4 87a5d16911bb94d383480fdd49e20876ed1400f2

       query 'alter table t exchange partition p0 with table t1' failed: 1526: Table has no partition for value 0
      

      Instead of "for value 0" there should be "for value 3".

      Attachments

        Issue Links

          Activity

            People

              holyfoot Alexey Botchkov
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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