diff --git a/storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp b/storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp index b9c03f0b209..9c2284e147c 100644 --- a/storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp +++ b/storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp @@ -2600,6 +2600,9 @@ loop: else { // error set by get filegroup + if (m_error.code == 723) + m_error.code = 755; + NdbMem_Free((void*)tmpTab); DBUG_RETURN(-1); } diff --git a/storage/ndb/src/ndbapi/ndberror.c b/storage/ndb/src/ndbapi/ndberror.c index d0d26c19cfa..c3874cbf8eb 100644 --- a/storage/ndb/src/ndbapi/ndberror.c +++ b/storage/ndb/src/ndbapi/ndberror.c @@ -376,7 +376,7 @@ ErrorBundle ErrorCodes[] = { { 752, DMEC, SE, "Invalid file format" }, { 753, IE, SE, "Invalid filegroup for file" }, { 754, IE, SE, "Invalid filegroup version when creating file" }, - { 755, DMEC, SE, "Invalid tablespace" }, + { 755, HA_WRONG_CREATE_OPTION, SE, "Invalid tablespace" }, { 756, DMEC, SE, "Index on disk column is not supported" }, { 757, DMEC, SE, "Varsize bitfield not supported" }, { 758, DMEC, SE, "Tablespace has changed" },