Commit 9812d796 authored by unknown's avatar unknown
Browse files

ndb - bug#16310

  better error message for creating table with non-existing tablespace


storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp:
  better error reporting
storage/ndb/src/ndbapi/ndberror.c:
  better error reporting
parent faa71d3a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2600,6 +2600,9 @@ NdbDictInterface::createOrAlterTable(Ndb & ndb,
    else 
    {
      // error set by get filegroup
      if (m_error.code == 723)
	m_error.code = 755;
      
      NdbMem_Free((void*)tmpTab);
      DBUG_RETURN(-1);
    }
+1 −1
Original line number Diff line number Diff line
@@ -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" },