Commit c47eca06 authored by joreland@mysql.com's avatar joreland@mysql.com

Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb

into mysql.com:/home/jonas/src/mysql-5.0-ndb
parents 44959ca8 bf2cdc75
...@@ -86,6 +86,7 @@ public: ...@@ -86,6 +86,7 @@ public:
NoMoreAttributeRecords = 708, NoMoreAttributeRecords = 708,
AttributeNameTwice = 720, AttributeNameTwice = 720,
TableAlreadyExist = 721, TableAlreadyExist = 721,
InvalidArraySize = 736,
ArraySizeTooBig = 737, ArraySizeTooBig = 737,
RecordTooBig = 738, RecordTooBig = 738,
InvalidPrimaryKeySize = 739, InvalidPrimaryKeySize = 739,
......
...@@ -4871,6 +4871,15 @@ void Dbdict::handleTabInfo(SimpleProperties::Reader & it, ...@@ -4871,6 +4871,15 @@ void Dbdict::handleTabInfo(SimpleProperties::Reader & it,
nullBits += attrDesc.AttributeArraySize; nullBits += attrDesc.AttributeArraySize;
} }
if(attrDesc.AttributeArraySize == 0)
{
parseP->errorCode = CreateTableRef::InvalidArraySize;
parseP->status = status;
parseP->errorKey = it.getKey();
parseP->errorLine = __LINE__;
return;
}
recordLength += sz; recordLength += sz;
if(attrDesc.AttributeKeyFlag){ if(attrDesc.AttributeKeyFlag){
keyLength += sz; keyLength += sz;
......
...@@ -308,7 +308,7 @@ ErrorBundle ErrorCodes[] = { ...@@ -308,7 +308,7 @@ ErrorBundle ErrorCodes[] = {
{ 709, SE, "No such table existed" }, { 709, SE, "No such table existed" },
{ 721, SE, "Table or index with given name already exists" }, { 721, SE, "Table or index with given name already exists" },
{ 723, SE, "No such table existed" }, { 723, SE, "No such table existed" },
{ 736, SE, "Wrong attribute size" }, { 736, SE, "Unsupported array size" },
{ 737, SE, "Attribute array size too big" }, { 737, SE, "Attribute array size too big" },
{ 738, SE, "Record too big" }, { 738, SE, "Record too big" },
{ 739, SE, "Unsupported primary key length" }, { 739, SE, "Unsupported primary key length" },
......
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