summaryrefslogtreecommitdiff
path: root/sql/key.cc
diff options
context:
space:
mode:
authorunknown <ramil@ram-book.(none)>2005-05-05 17:17:55 +0500
committerunknown <ramil@ram-book.(none)>2005-05-05 17:17:55 +0500
commitd60bbfbc95f16a139a305fd9fc2094acc8751987 (patch)
treed5974982cafbc0f2c511e9ef17c65ddabb5ec52d /sql/key.cc
parent945368e557023e53b41609701994c340e392de4b (diff)
downloadmariadb-git-d60bbfbc95f16a139a305fd9fc2094acc8751987.tar.gz
A fix (bug #10179: error in default value setting).
include/my_handler.h: A fix (bug #10179: error in default value setting). Proper masks added: we should not touch extra bits. sql/key.cc: A fix (bug #10179: error in default value setting). Unnecessary code removed. sql/unireg.cc: A fix (bug #10179: error in default value setting). 1. we should take into account uneven bits (for bit fields) stored among NULL bits. 2. changed code which sets NULL bits for fields. 3. changed code which sets unused bits after NULL bits. 4. unused variables removed. BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'sql/key.cc')
-rw-r--r--sql/key.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/sql/key.cc b/sql/key.cc
index 3299c3db8f8..4bd71d2fa47 100644
--- a/sql/key.cc
+++ b/sql/key.cc
@@ -197,12 +197,6 @@ void key_restore(byte *to_record, byte *from_key, KEY *key_info,
(key_part->null_bit == 128),
field->bit_ofs, field->bit_len);
}
- else
- {
- clr_rec_bits(to_record + key_part->null_offset +
- (key_part->null_bit == 128),
- field->bit_ofs, field->bit_len);
- }
}
if (key_part->key_part_flag & HA_BLOB_PART)
{