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

Problems with multi-table updates that JOIN against read-only table

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.5.37, 10.0.10
    • 5.5.38, 10.0.12
    • None
    • None

    Description

      These items may be related to MDEV-5981 or MDEV-6139:

       
      drop table if exists t1, t2, t2_0; 
      CREATE TABLE `t1` ( 
        `id` int(10) unsigned NOT NULL AUTO_INCREMENT, 
        `a` int(11) DEFAULT NULL, 
        PRIMARY KEY (`id`) 
      ) ENGINE=MyISAM; 
       
      CREATE TABLE `t2_0` ( 
        `id` int(10) unsigned NOT NULL AUTO_INCREMENT, 
        `b` int(11) DEFAULT NULL, 
        PRIMARY KEY (`id`) 
      ) ENGINE=MyISAM; 
       
      CREATE TABLE `t2` ( 
        `id` int(10) unsigned NOT NULL AUTO_INCREMENT, 
        `b` int(11) DEFAULT NULL, 
        PRIMARY KEY (`id`) 
      ) ENGINE=MRG_MyISAM UNION=(`t2_0`); 
       
      FLUSH TABLES; 

       
      myisampack -f ./data/test/t2_0 
      myisamchk -rq ./data/test/t2_0 

      mysql 5.5.37-MariaDB (root) [test]> create view v2 as select * from t2;
      Query OK, 0 rows affected (0.01 sec)
      mysql 5.5.37-MariaDB (root) [test]> update t1 join v2 using (id) set t1.a=0;
      ERROR 1036 (HY000): Table 't2_0' is read only

      mysql 5.5.37-MariaDB (root) [test]> create view v2_0 as select * from t2_0;
      Query OK, 0 rows affected (0.01 sec)
      mysql 5.5.37-MariaDB (root) [test]> update t1 join v2_0 using (id) set t1.a=0;
      ERROR 1036 (HY000): Table 't2_0' is read only

      Attachments

        Activity

          kolbe Kolbe Kegel (Inactive) created issue -
          elenst Elena Stepanova made changes -
          Field Original Value New Value
          Assignee Oleksandr Byelkin [ sanja ]
          sanja Oleksandr Byelkin made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          sanja Oleksandr Byelkin made changes -
          Affects Version/s 10.0.10 [ 14500 ]
          sanja Oleksandr Byelkin made changes -
          Status In Progress [ 3 ] Stalled [ 10000 ]
          serg Sergei Golubchik made changes -
          Fix Version/s 10.0.12 [ 15201 ]
          Fix Version/s 5.5.38 [ 15400 ]
          sanja Oleksandr Byelkin made changes -
          Status Stalled [ 10000 ] In Progress [ 3 ]
          sanja Oleksandr Byelkin made changes -
          Status In Progress [ 3 ] Stalled [ 10000 ]
          sanja Oleksandr Byelkin made changes -
          Resolution Fixed [ 1 ]
          Status Stalled [ 10000 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow defaullt [ 39915 ] MariaDB v2 [ 44242 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 44242 ] MariaDB v3 [ 64280 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 64280 ] MariaDB v4 [ 147855 ]

          People

            sanja Oleksandr Byelkin
            kolbe Kolbe Kegel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.