summaryrefslogtreecommitdiff
path: root/sql/ha_heap.cc
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2001-01-17 03:15:20 +0200
committermonty@donna.mysql.com <>2001-01-17 03:15:20 +0200
commit0732f7475eb4775fcfff20257bbe386b38e51a99 (patch)
tree256b185f833ce2fac42471efe65aa7bde9b9a8da /sql/ha_heap.cc
parent5f4a3f51675240ac05daaba50926740e380e5016 (diff)
downloadmariadb-git-0732f7475eb4775fcfff20257bbe386b38e51a99.tar.gz
Fixed for bugs that was found when getting full code coverage of BDB
Fixed bug with HEAP tables on windows Fixed bug with HAVING on empty tables
Diffstat (limited to 'sql/ha_heap.cc')
-rw-r--r--sql/ha_heap.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/ha_heap.cc b/sql/ha_heap.cc
index 0a8f55bc5bb..13dccc2bf64 100644
--- a/sql/ha_heap.cc
+++ b/sql/ha_heap.cc
@@ -70,7 +70,7 @@ int ha_heap::open(const char *name, int mode, uint test_if_locked)
}
mem_per_row += MY_ALIGN(table->reclength+1, sizeof(char*));
max_rows = (ulong) (max_heap_table_size / mem_per_row);
- file=heap_open(table->path,mode,
+ file=heap_open(name,mode,
table->keys,keydef,
table->reclength,
((table->max_rows < max_rows && table->max_rows) ?
@@ -278,5 +278,5 @@ int ha_heap::create(const char *name, TABLE *form, HA_CREATE_INFO *create_info)
{
char buff[FN_REFLEN];
- return heap_create(fn_format(buff,name,"","",2));
+ return heap_create(fn_format(buff,name,"","",4+2));
}