diff --git a/storage/ndb/src/ndbapi/NdbBlob.cpp b/storage/ndb/src/ndbapi/NdbBlob.cpp index 836b7ee1b97..081c7e2f995 100644 --- a/storage/ndb/src/ndbapi/NdbBlob.cpp +++ b/storage/ndb/src/ndbapi/NdbBlob.cpp @@ -982,7 +982,7 @@ NdbBlob::writeData(const void* data, Uint32 bytes) } const char* buf = static_cast(data); int ret = writeDataPrivate(buf, bytes); - DBUG_RETURN(0); + DBUG_RETURN(ret); } int