mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
Fix for 840, invalid tuple size.
Still don't know reason, but this works
This commit is contained in:
parent
6868112c76
commit
db858c08b7
1 changed files with 3 additions and 2 deletions
|
@ -528,9 +528,9 @@ NdbOperation::setValue( const NdbColumnImpl* tAttrInfo,
|
|||
tAttrId = tAttrInfo->m_attrId;
|
||||
const char *aValue = aValuePassed;
|
||||
Uint32 ahValue;
|
||||
AttributeHeader& ah = AttributeHeader::init(&ahValue, tAttrId, 0);
|
||||
if (aValue == NULL) {
|
||||
if (tAttrInfo->m_nullable) {
|
||||
AttributeHeader& ah = AttributeHeader::init(&ahValue, tAttrId, 0);
|
||||
ah.setNULL();
|
||||
insertATTRINFO(ahValue);
|
||||
// Insert Attribute Id with the value
|
||||
|
@ -564,7 +564,8 @@ NdbOperation::setValue( const NdbColumnImpl* tAttrInfo,
|
|||
}//if
|
||||
const Uint32 totalSizeInWords = (sizeInBytes + 3)/4; // Including bits in last word
|
||||
const Uint32 sizeInWords = sizeInBytes / 4; // Excluding bits in last word
|
||||
ah.setDataSize(totalSizeInWords);
|
||||
AttributeHeader& ah = AttributeHeader::init(&ahValue, tAttrId,
|
||||
totalSizeInWords);
|
||||
insertATTRINFO( ahValue );
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Add table
Reference in a new issue