1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

ha_ndbcluster.cc, ndb_blob.test, ndb_blob.result:

bug-5013 fix
This commit is contained in:
pekka@mysql.com
2004-09-02 12:42:03 +02:00
parent 415d163a3d
commit f01a88dce9
3 changed files with 53 additions and 7 deletions

View File

@@ -305,9 +305,11 @@ int ha_ndbcluster::set_ndb_value(NdbOperation *ndb_op, Field *field,
char* blob_ptr= NULL;
field_blob->get_ptr(&blob_ptr);
// Looks like NULL blob can also be signaled in this way
if (blob_ptr == NULL)
DBUG_RETURN(ndb_blob->setNull() != 0);
// Looks like NULL ptr signals length 0 blob
if (blob_ptr == NULL) {
DBUG_ASSERT(blob_len == 0);
blob_ptr= "";
}
DBUG_PRINT("value", ("set blob ptr=%x len=%u",
(unsigned)blob_ptr, blob_len));