diff options
author | unknown <msvensson@neptunus.(none)> | 2005-04-04 12:26:05 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2005-04-04 12:26:05 +0200 |
commit | f65e9210eee3debfadf8819fc92b4dc1e87f85ae (patch) | |
tree | f784eaa2c6927456a656e484ef4f961345976d33 /mysql-test/r | |
parent | 8ef1afbaa4ba0c639f2ecf47853086e783cc1efa (diff) | |
download | mariadb-git-f65e9210eee3debfadf8819fc92b4dc1e87f85ae.tar.gz |
BUG#6762 ALTER TABLE gives weird results and error message
- Better error message when table definition has changed
mysql-test/r/ndb_alter_table.result:
New error message and code when table definition has changed.
mysql-test/r/ndb_multi.result:
Safety, drop tables in second server as well
mysql-test/t/ndb_alter_table.test:
New error message and code when table definition has changed.
mysql-test/t/ndb_multi.test:
Safety, drop tables in second server as well
sql/ha_ndbcluster.cc:
When error 284 is returned from NDB a check must be made to see what the error really means.
- if table does not exists any more, return 709 -> No such table exists
- if table still exists, table has most likely been altered and table id and version has
changed, print hardcoded errormessage indicating that transaction should retried
(this error message should be translated to a langauge dependent error message in 5.0)
Remove mapping from 284 to HA_ERR_NO_SUCH_TABLE
Diffstat (limited to 'mysql-test/r')
-rw-r--r-- | mysql-test/r/ndb_alter_table.result | 2 | ||||
-rw-r--r-- | mysql-test/r/ndb_multi.result | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/mysql-test/r/ndb_alter_table.result b/mysql-test/r/ndb_alter_table.result index 88ac04db111..52ae0b58d56 100644 --- a/mysql-test/r/ndb_alter_table.result +++ b/mysql-test/r/ndb_alter_table.result @@ -179,7 +179,7 @@ a b c 2 two two alter table t1 drop index c; select * from t1 where b = 'two'; -ERROR 42S02: Table 'test.t1' doesn't exist +ERROR HY000: Table definition has changed, please retry transaction select * from t1 where b = 'two'; a b c 2 two two diff --git a/mysql-test/r/ndb_multi.result b/mysql-test/r/ndb_multi.result index 4a2389cd1ff..5696fda1c07 100644 --- a/mysql-test/r/ndb_multi.result +++ b/mysql-test/r/ndb_multi.result @@ -47,3 +47,4 @@ t2 t3 t4 drop table t1, t2, t3, t4; +drop table t1, t3, t4; |