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

- Error 1296 is no longer returned on first select after DROP/CREATE.
parent 06a9b0be
......@@ -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;
......
......@@ -72,7 +72,6 @@ CREATE TABLE t1 (
connection server1;
--error 1296
select * from t1;
select * from t1;
select * from t1;
......
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment