summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.cc
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2005-04-07 20:17:37 +0200
committerunknown <msvensson@neptunus.(none)>2005-04-07 20:17:37 +0200
commitf9d6463fdf09215fee71530693190abeedbbea66 (patch)
treeb9fd8ac3554fbea0abccf16d285c567223ca7050 /sql/ha_ndbcluster.cc
parente73f1239dcffb56b35a7047b0f2ac43c39939ebc (diff)
downloadmariadb-git-f9d6463fdf09215fee71530693190abeedbbea66.tar.gz
BUG#6762 ALTER TABLE gives weird results and error message
- Removed hardcoded error message from 4.1 include/my_base.h: Adding error message for the case when table definition has changed in storage engine mysql-test/t/ndb_alter_table.test: Updated testresult to expect new error code sql/ha_ndbcluster.cc: Add mapping for ndb error 284 to HA_ERR_TABLE_DEF_CHANGED, this error will occur when the table definition has been changed by another MySQL Server connected to the cluster. Remove hardcoded errormessage from 4.1 sql/handler.cc: Adding error message for the case when table definition has changed in storage engine sql/share/errmsg.txt: Adding error message for the case when table definition has changed in storage engine
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r--sql/ha_ndbcluster.cc13
1 files changed, 3 insertions, 10 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index 5848fc002e4..a60f8133d47 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -192,6 +192,8 @@ static const err_code_mapping err_map[]=
{ 827, HA_ERR_RECORD_FILE_FULL, 1 },
{ 832, HA_ERR_RECORD_FILE_FULL, 1 },
+ { 284, HA_ERR_TABLE_DEF_CHANGED, 0 },
+
{ 0, 1, 0 },
{ -1, -1, 1 }
@@ -470,16 +472,7 @@ int ha_ndbcluster::ndb_err(NdbTransaction *trans)
if (err.code != 709)
DBUG_RETURN(1);
}
- else
- {
- DBUG_PRINT("info", ("Table exist but must have changed"));
- /* In 5.0, this should be replaced with a mapping to a mysql error */
- my_printf_error(ER_UNKNOWN_ERROR,
- "Table definition has changed, "\
- "please retry transaction",
- MYF(0));
- DBUG_RETURN(1);
- }
+ DBUG_PRINT("info", ("Table exists but must have changed"));
}
break;
default: