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

Can't find record in table on multi-table update with ORDER BY

    Details

    • Sprint:
      10.3.6-1

      Description

      --source include/have_partition.inc
       
      CREATE TABLE t1 (i INT) ENGINE=MyISAM;
      INSERT IGNORE INTO t1 VALUES (1),(2);
       
      CREATE TABLE t2 (f INT) ENGINE=MyISAM 
      PARTITION BY RANGE(f) (
        PARTITION p1 VALUES LESS THAN (128),
        PARTITION p2 VALUES LESS THAN MAXVALUE
      );
      REPLACE INTO t2 VALUES (1),(2);
       
      UPDATE t1, t2 SET f = 126 ORDER BY f LIMIT 2;
       
      # Cleanup
      DROP TABLE t1, t2;
      

      MariaDB [test]> UPDATE t1, t2 SET f = 126 ORDER BY f LIMIT 2;
      ERROR 1032 (HY000): Can't find record in 't2'
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                elenst Elena Stepanova
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: