summaryrefslogtreecommitdiff
path: root/heap/hp_create.c
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2002-12-02 17:52:22 +0200
committerunknown <monty@mashka.mysql.fi>2002-12-02 17:52:22 +0200
commit59dec1bcd20662f7a73d12c78b9b2e682a79e059 (patch)
tree1342a5bdccc313accd5dfa8e27c487ddb0994720 /heap/hp_create.c
parent9fcbfc0d12444c19f5b51249425e9324516ee35a (diff)
downloadmariadb-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_create.c')
-rw-r--r--heap/hp_create.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/heap/hp_create.c b/heap/hp_create.c
index 40b8202d94f..5265607ce53 100644
--- a/heap/hp_create.c
+++ b/heap/hp_create.c
@@ -140,6 +140,7 @@ int heap_create(const char *name, uint keys, HP_KEYDEF *keydef,
share->auto_key= create_info->auto_key;
share->auto_key_type= create_info->auto_key_type;
share->auto_increment= create_info->auto_increment;
+ /* Must be allocated separately for rename to work */
if (!(share->name= my_strdup(name,MYF(0))))
{
my_free((gptr) share,MYF(0));