Commit 645f5733 authored by pekka@mysql.com's avatar pekka@mysql.com

NdbDictionaryImpl.cpp:

  fix error code
parent 91eaf928
......@@ -1647,7 +1647,7 @@ NdbDictInterface::createOrAlterTable(Ndb & ndb,
}
// primary key type check
if (col->m_pk && ! NdbSqlUtil::usable_in_pk(col->m_type, col->m_cs)) {
m_error.code= 743;
m_error.code= (col->m_cs != 0 ? 743 : 739);
DBUG_RETURN(-1);
}
// distribution key not supported for Char attribute
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment