mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 07:05:33 +02:00
bug-5252 fix (tinyblob)
ndb/src/ndbapi/NdbBlob.cpp: theBlobTable is NULL for tinyblob
This commit is contained in:
parent
85391d227f
commit
aa243adb8f
1 changed files with 4 additions and 3 deletions
|
|
@ -145,6 +145,7 @@ NdbBlob::init()
|
|||
theNdbOp = NULL;
|
||||
theTable = NULL;
|
||||
theAccessTable = NULL;
|
||||
theBlobTable = NULL;
|
||||
theColumn = NULL;
|
||||
theFillChar = 0;
|
||||
theInlineSize = 0;
|
||||
|
|
@ -1028,9 +1029,9 @@ NdbBlob::atPrepare(NdbConnection* aCon, NdbOperation* anOp, const NdbColumnImpl*
|
|||
// sanity check
|
||||
assert((NDB_BLOB_HEAD_SIZE << 2) == sizeof(Head));
|
||||
assert(theColumn->m_attrSize * theColumn->m_arraySize == sizeof(Head) + theInlineSize);
|
||||
const NdbDictionary::Table* bt;
|
||||
const NdbDictionary::Column* bc;
|
||||
if (thePartSize > 0) {
|
||||
const NdbDictionary::Table* bt = NULL;
|
||||
const NdbDictionary::Column* bc = NULL;
|
||||
if (theStripeSize == 0 ||
|
||||
(bt = theColumn->getBlobTable()) == NULL ||
|
||||
(bc = bt->getColumn("DATA")) == NULL ||
|
||||
|
|
@ -1039,8 +1040,8 @@ NdbBlob::atPrepare(NdbConnection* aCon, NdbOperation* anOp, const NdbColumnImpl*
|
|||
setErrorCode(ErrTable);
|
||||
return -1;
|
||||
}
|
||||
theBlobTable = &NdbTableImpl::getImpl(*bt);
|
||||
}
|
||||
theBlobTable = & NdbTableImpl::getImpl(*bt);
|
||||
// buffers
|
||||
theKeyBuf.alloc(theTable->m_sizeOfKeysInWords << 2);
|
||||
theAccessKeyBuf.alloc(theAccessTable->m_sizeOfKeysInWords << 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue