Bug #11313 confusing/erroneous 4006 message

This commit is contained in:
unknown 2007-09-07 11:15:07 +02:00
commit 821abeee47
3 changed files with 5 additions and 3 deletions

View file

@ -3082,7 +3082,7 @@ ndbcluster_handle_drop_table(Ndb *ndb, const char *event_name,
/* ToDo; handle error? */
if (share && share->op &&
share->op->getState() == NdbEventOperation::EO_EXECUTING &&
dict->getNdbError().code != 4009)
dict->getNdbError().mysql_code != HA_ERR_NO_CONNECTION)
{
DBUG_ASSERT(FALSE);
DBUG_RETURN(-1);