Commit 112e4e68 authored by stewart@mysql.com's avatar stewart@mysql.com

Merge mysql.com:/home/stewart/Documents/MySQL/5.0/ndb

into mysql.com:/home/stewart/Documents/MySQL/5.0/ndb-dynamic-port
parents a9033343 c3eb3c0a
...@@ -95,6 +95,7 @@ jcole@tetra.spaceapes.com ...@@ -95,6 +95,7 @@ jcole@tetra.spaceapes.com
jimw@mysql.com jimw@mysql.com
joerg@mysql.com joerg@mysql.com
jon@gigan. jon@gigan.
joreland@bk-internal.mysql.com
joreland@mysql.com joreland@mysql.com
jorge@linux.jorge.mysql.com jorge@linux.jorge.mysql.com
jplindst@t41.(none) jplindst@t41.(none)
......
...@@ -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" },
......
max-time: 2500 max-time: 25000
cmd: atrt-mysql-test-run cmd: atrt-mysql-test-run
args: --do-test=ndb --force args: --force
# #
# INDEX # INDEX
......
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