diff options
author | pekka@mysql.com <> | 2004-06-10 12:04:30 +0200 |
---|---|---|
committer | pekka@mysql.com <> | 2004-06-10 12:04:30 +0200 |
commit | 699793ec95911849a02acc717971d6056d3d05c3 (patch) | |
tree | b6d20a2f55d76d991718a9972e7f5766ec61b240 /ndb/src/ndbapi/NdbIndexOperation.cpp | |
parent | b7a2c98cc4a3435c854b5feda7f04bc33fb3a398 (diff) | |
download | mariadb-git-699793ec95911849a02acc717971d6056d3d05c3.tar.gz |
ndb api blobs
Diffstat (limited to 'ndb/src/ndbapi/NdbIndexOperation.cpp')
-rw-r--r-- | ndb/src/ndbapi/NdbIndexOperation.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ndb/src/ndbapi/NdbIndexOperation.cpp b/ndb/src/ndbapi/NdbIndexOperation.cpp index ee5491d72a8..d2e7d71b199 100644 --- a/ndb/src/ndbapi/NdbIndexOperation.cpp +++ b/ndb/src/ndbapi/NdbIndexOperation.cpp @@ -372,6 +372,17 @@ int NdbIndexOperation::equal_impl(const NdbColumnImpl* tAttrInfo, } else if ((tOpType == ReadRequest) || (tOpType == DeleteRequest) || (tOpType == ReadExclusive)) { theStatus = GetValue; + // create blob handles automatically + if (tOpType == DeleteRequest && m_currentTable->m_noOfBlobs != 0) { + for (unsigned i = 0; i < m_currentTable->m_columns.size(); i++) { + NdbColumnImpl* c = m_currentTable->m_columns[i]; + assert(c != 0); + if (c->getBlobType()) { + if (getBlobHandle(theNdbCon, c) == NULL) + return -1; + } + } + } return 0; } else if ((tOpType == InsertRequest) || (tOpType == WriteRequest)) { theStatus = SetValue; |