summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authorunknown <pekka@mysql.com>2006-02-03 14:35:29 +0100
committerunknown <pekka@mysql.com>2006-02-03 14:35:29 +0100
commitdfcf430e1418ed95057c3de14cd75739c8522930 (patch)
tree5d45c6866c3ba4826d28fe8a1bd560786862efba /ndb
parent20a648dc2a0da96b6c2b2d67c56094b9b72c27b9 (diff)
downloadmariadb-git-dfcf430e1418ed95057c3de14cd75739c8522930.tar.gz
ndb - bugfix: tinyblob + replace => mysqld crash (no bug#)
mysql-test/r/ndb_blob.result: do not delete unknown parts of tinyblob mysql-test/t/ndb_blob.test: do not delete unknown parts of tinyblob ndb/src/ndbapi/NdbBlob.cpp: do not delete unknown parts of tinyblob
Diffstat (limited to 'ndb')
-rw-r--r--ndb/src/ndbapi/NdbBlob.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ndb/src/ndbapi/NdbBlob.cpp b/ndb/src/ndbapi/NdbBlob.cpp
index d1aa4e61c40..35cf71b5e5a 100644
--- a/ndb/src/ndbapi/NdbBlob.cpp
+++ b/ndb/src/ndbapi/NdbBlob.cpp
@@ -947,6 +947,8 @@ NdbBlob::deletePartsUnknown(Uint32 part)
{
DBUG_ENTER("NdbBlob::deletePartsUnknown");
DBUG_PRINT("info", ("part=%u count=all", part));
+ if (thePartSize == 0) // tinyblob
+ DBUG_RETURN(0);
static const unsigned maxbat = 256;
static const unsigned minbat = 1;
unsigned bat = minbat;