[MDEV-17731] regression on 10.2.18 COM_RESET_CONNECTION doesn't reset temporary table Created: 2018-11-15  Updated: 2018-11-15  Resolved: 2018-11-15

Status: Closed
Project: MariaDB Server
Component/s: Data Definition - Temporary
Affects Version/s: 10.2.18
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Diego Dupin Assignee: Unassigned
Resolution: Not a Bug Votes: 0
Labels: None


 Description   

COM_RESET_CONNECTION doesn't reset temporary table anymore, this is a regression on 10.2.18,
This works well on 10.2.17 and 10.3.

COM_RESET still reset user variables, current transaction, ...

example :

    base
      .createConnection()
      .then(conn => {
        conn
          .query("CREATE TEMPORARY TABLE ttt(t varchar(128))")
          .then(() => {
            return conn.query("select * from ttt");
          })
          .then(rows => {
            assert.deepEqual(rows, []);
            return conn.reset();
          })
          .then(() => {
            return conn.query("select * from ttt");
          })
          .then(rows => {
            done(new Error("temporary table must not exist !")); // => THROW THIS ERROR, BECAUSE QUERY WORKS.
          })
          .catch(err => {
            if (
              (conn.info.isMariaDB() && conn.info.hasMinVersion(10, 2, 4)) ||
              (!conn.info.isMariaDB() && conn.info.hasMinVersion(5, 7, 3))
            ) {
              assert.equal(err.errno, 1146);
            }
            conn.end();
            done();
          });
      })
      .catch(done);



 Comments   
Comment by Diego Dupin [ 2018-11-15 ]

error, i cannot reproduce it anymore

Generated at Thu Feb 08 08:38:41 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.