mirror of
https://github.com/MariaDB/server.git
synced 2025-08-30 11:22:14 +03:00
Fix for Bug #7988 Bitfield test fails
This commit is contained in:
@@ -524,6 +524,13 @@ int ha_ndbcluster::set_ndb_value(NdbOperation *ndb_op, Field *field,
|
|||||||
DBUG_RETURN((ndb_op->setValue(fieldnr, (char*)NULL, pack_len) != 0));
|
DBUG_RETURN((ndb_op->setValue(fieldnr, (char*)NULL, pack_len) != 0));
|
||||||
DBUG_PRINT("info", ("bit field"));
|
DBUG_PRINT("info", ("bit field"));
|
||||||
DBUG_DUMP("value", (char*)&bits, pack_len);
|
DBUG_DUMP("value", (char*)&bits, pack_len);
|
||||||
|
#ifdef WORDS_BIGENDIAN
|
||||||
|
if (pack_len < 5)
|
||||||
|
{
|
||||||
|
DBUG_RETURN(ndb_op->setValue(fieldnr,
|
||||||
|
((char*)&bits)+4, pack_len) != 0);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
DBUG_RETURN(ndb_op->setValue(fieldnr, (char*)&bits, pack_len) != 0);
|
DBUG_RETURN(ndb_op->setValue(fieldnr, (char*)&bits, pack_len) != 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user