Commit 7c834955 authored by unknown's avatar unknown
Browse files

Bug#13228 open table cache not flushed when table schema changed

- Error 1296 is no longer returned on first select after DROP/CREATE.


mysql-test/r/ndb_alter_table2.result:
  Error 1296 is no longer returned on first select after DROP/CREATE, handled proactive in ndb_handle_schema_change.
mysql-test/t/ndb_alter_table2.test:
  Error 1296 is no longer returned on first select after DROP/CREATE, handled proactive in ndb_handle_schema_change.
sql/ha_ndbcluster.cc:
  Add sourrounding {'s
parent d2422186
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ b INT NOT NULL,
c INT NOT NULL
) ENGINE=ndbcluster;
select * from t1;
ERROR HY000: Got error 241 'Invalid schema object version' from ndbcluster
a	b	c
select * from t1;
a	b	c
select * from t1;
+0 −1
Original line number Diff line number Diff line
@@ -72,7 +72,6 @@ CREATE TABLE t1 (

connection server1;

--error 1296
select * from t1;
select * from t1;
select * from t1;
+2 −0
Original line number Diff line number Diff line
@@ -556,6 +556,7 @@ int ha_ndbcluster::ndb_err(NdbTransaction *trans)
  ERR_PRINT(err);
  switch (err.classification) {
  case NdbError::SchemaError:
  {
    invalidate_dictionary_cache(TRUE);

    /* Close other open handlers not used by any thread */
@@ -583,6 +584,7 @@ int ha_ndbcluster::ndb_err(NdbTransaction *trans)
      DBUG_PRINT("info", ("Table exists but must have changed"));
    }
    break;
  }
  default:
    break;
  }