summaryrefslogtreecommitdiff
path: root/heap/hp_open.c
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2002-01-16 00:42:52 +0200
committermonty@hundin.mysql.fi <>2002-01-16 00:42:52 +0200
commit4d10a0cb7eac04d7134537df139c87023453111d (patch)
tree890cb295feeab3ebd6413663178be56ec5ed21a2 /heap/hp_open.c
parent7dd4eb71fe7576e428fe1ecaaad214d3a39ff4dc (diff)
downloadmariadb-git-4d10a0cb7eac04d7134537df139c87023453111d.tar.gz
Add support for NULL=NULL in keys (Used in GROUP BY optimization)
Add ISAM to Windows version Fix of test results Fixes for NULL keys in HEAP tables.
Diffstat (limited to 'heap/hp_open.c')
-rw-r--r--heap/hp_open.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/heap/hp_open.c b/heap/hp_open.c
index 69e02945253..938ab8c4f78 100644
--- a/heap/hp_open.c
+++ b/heap/hp_open.c
@@ -46,7 +46,8 @@ HP_INFO *heap_open(const char *name, int mode, uint keys, HP_KEYDEF *keydef,
for (j=length=0 ; j < keydef[i].keysegs; j++)
{
length+=keydef[i].seg[j].length;
- if (keydef[i].seg[j].null_bit)
+ if (keydef[i].seg[j].null_bit &&
+ !(keydef[i].flag & HA_NULL_ARE_EQUAL))
keydef[i].flag |= HA_NULL_PART_KEY;
}
keydef[i].length=length;