diff options
author | cmiller@zippy.cornsilk.net <> | 2006-08-02 13:06:59 -0400 |
---|---|---|
committer | cmiller@zippy.cornsilk.net <> | 2006-08-02 13:06:59 -0400 |
commit | c9f64f71c80765b28d4196b43a7da13a0a053306 (patch) | |
tree | f1078fdaf773c7b1ea8bf167ef14595a887b78b9 /heap | |
parent | 757493d4ec09734e89bd5418f26f3af26dfbc6b3 (diff) | |
download | mariadb-git-c9f64f71c80765b28d4196b43a7da13a0a053306.tar.gz |
Bug#9719: DELETE with WHERE on HEAP table just deletes first row of matched
set.
(Ramil's patch, recreated.)
Diffstat (limited to 'heap')
-rw-r--r-- | heap/hp_delete.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/heap/hp_delete.c b/heap/hp_delete.c index 90e537081d3..266a9da6ca3 100644 --- a/heap/hp_delete.c +++ b/heap/hp_delete.c @@ -73,7 +73,10 @@ int hp_rb_delete_key(HP_INFO *info, register HP_KEYDEF *keyinfo, int res; if (flag) + { info->last_pos= NULL; /* For heap_rnext/heap_rprev */ + info->lastkey_len= 0; + } custom_arg.keyseg= keyinfo->seg; custom_arg.key_length= hp_rb_make_key(keyinfo, info->recbuf, record, recpos); |