diff options
author | unknown <monty@mashka.mysql.fi> | 2002-12-02 17:52:22 +0200 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2002-12-02 17:52:22 +0200 |
commit | 59dec1bcd20662f7a73d12c78b9b2e682a79e059 (patch) | |
tree | 1342a5bdccc313accd5dfa8e27c487ddb0994720 /heap/hp_update.c | |
parent | 9fcbfc0d12444c19f5b51249425e9324516ee35a (diff) | |
download | mariadb-git-59dec1bcd20662f7a73d12c78b9b2e682a79e059.tar.gz |
Fixed bug when creating keys in temporary HEAP tables.
(This caused the DISTINCT test to fail)
Removed one inline as this caused compiler problems
heap/hp_create.c:
Comment
heap/hp_update.c:
Indentation cleanup
heap/hp_write.c:
Indentation cleanup
mysql-test/mysql-test-run.sh:
Better options for valgrind
sql/item_sum.cc:
Removed inline as this caused compiler problems with gcc 3.2
(Was also non standard usage of inline)
sql/item_sum.h:
Removed inline as this caused compiler problems with gcc 3.2
sql/sql_class.cc:
Fixed reference to uninitialized value
sql/sql_lex.cc:
Indentation cleanup
sql/sql_select.cc:
Fixed bug when creating keys in temporary HEAP tables.
Diffstat (limited to 'heap/hp_update.c')
-rw-r--r-- | heap/hp_update.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/heap/hp_update.c b/heap/hp_update.c index dd7374f506c..b789ab82b84 100644 --- a/heap/hp_update.c +++ b/heap/hp_update.c @@ -62,7 +62,8 @@ int heap_update(HP_INFO *info, const byte *old, const byte *heap_new) /* we don't need to delete non-inserted key from rb-tree */ if ((*keydef->write_key)(info, keydef, old, pos)) { - if (++(share->records) == share->blength) share->blength+= share->blength; + if (++(share->records) == share->blength) + share->blength+= share->blength; DBUG_RETURN(my_errno); } keydef--; @@ -78,6 +79,7 @@ int heap_update(HP_INFO *info, const byte *old, const byte *heap_new) keydef--; } } - if (++(share->records) == share->blength) share->blength+= share->blength; + if (++(share->records) == share->blength) + share->blength+= share->blength; DBUG_RETURN(my_errno); } /* heap_update */ |