summaryrefslogtreecommitdiff
path: root/heap/hp_test1.c
diff options
context:
space:
mode:
authorunknown <ram@mysql.r18.ru>2002-10-07 17:49:03 +0500
committerunknown <ram@mysql.r18.ru>2002-10-07 17:49:03 +0500
commit9195963f56122b3ca7fa480607b8da9ae969a364 (patch)
treeebf4b60cc6d75288281e8c8da41994ba6bc7d89f /heap/hp_test1.c
parent9e5a4be4605cf71c5e3d6c07283c95fc4f29db70 (diff)
downloadmariadb-git-9195963f56122b3ca7fa480607b8da9ae969a364.tar.gz
auto_increment for heap tables
test case heap/hp_create.c: auto_increment for heap tables heap/hp_hash.c: auto_increment for heap tables heap/hp_info.c: auto_increment for heap tables heap/hp_test1.c: auto_increment for heap tables heap/hp_test2.c: auto_increment for heap tables heap/hp_update.c: auto_increment for heap tables heap/hp_write.c: auto_increment for heap tables include/heap.h: auto_increment for heap tables mysql-test/r/create.result: auto_increment for heap tables mysql-test/t/create.test: auto_increment for heap tables sql/ha_heap.cc: auto_increment for heap tables sql/ha_heap.h: auto_increment for heap tables
Diffstat (limited to 'heap/hp_test1.c')
-rw-r--r--heap/hp_test1.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/heap/hp_test1.c b/heap/hp_test1.c
index 58a13efc12f..2e0a57a12d3 100644
--- a/heap/hp_test1.c
+++ b/heap/hp_test1.c
@@ -37,11 +37,14 @@ int main(int argc, char **argv)
const char *filename;
HP_KEYDEF keyinfo[10];
HA_KEYSEG keyseg[4];
+ HP_CREATE_INFO hp_create_info;
MY_INIT(argv[0]);
filename= "test1";
get_options(argc,argv);
+ bzero(&hp_create_info, sizeof(hp_create_info));
+
keyinfo[0].keysegs=1;
keyinfo[0].seg=keyseg;
keyinfo[0].algorithm= HA_KEY_ALG_HASH;
@@ -55,7 +58,8 @@ int main(int argc, char **argv)
bzero((gptr) flags,sizeof(flags));
printf("- Creating heap-file\n");
- if (heap_create(filename,1,keyinfo,30,(ulong) flag*100000l,10l) ||
+ if (heap_create(filename,1,keyinfo,30,(ulong) flag*100000l,10l,
+ &hp_create_info) ||
!(file= heap_open(filename, 2)))
goto err;
printf("- Writing records:s\n");