diff options
author | unknown <ram@mysql.r18.ru> | 2002-10-07 17:49:03 +0500 |
---|---|---|
committer | unknown <ram@mysql.r18.ru> | 2002-10-07 17:49:03 +0500 |
commit | 9195963f56122b3ca7fa480607b8da9ae969a364 (patch) | |
tree | ebf4b60cc6d75288281e8c8da41994ba6bc7d89f /heap/hp_test2.c | |
parent | 9e5a4be4605cf71c5e3d6c07283c95fc4f29db70 (diff) | |
download | mariadb-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_test2.c')
-rw-r--r-- | heap/hp_test2.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/heap/hp_test2.c b/heap/hp_test2.c index 3355c94727b..73e8039d125 100644 --- a/heap/hp_test2.c +++ b/heap/hp_test2.c @@ -63,6 +63,7 @@ int main(int argc, char *argv[]) HP_KEYDEF keyinfo[MAX_KEYS]; HA_KEYSEG keyseg[MAX_KEYS*5]; HEAP_PTR position; + HP_CREATE_INFO hp_create_info; MY_INIT(argv[0]); /* init my_sys library & pthreads */ LINT_INIT(position); @@ -70,6 +71,8 @@ int main(int argc, char *argv[]) filename2= "test2_2"; file=file2=0; get_options(argc,argv); + + bzero(&hp_create_info, sizeof(hp_create_info)); write_count=update=opt_delete=0; key_check=0; @@ -122,7 +125,7 @@ int main(int argc, char *argv[]) printf("- Creating heap-file\n"); if (heap_create(filename,keys,keyinfo,reclength,(ulong) flag*100000L, - (ulong) recant/2) || + (ulong) recant/2, &hp_create_info) || !(file= heap_open(filename, 2))) goto err; signal(SIGINT,endprog); @@ -557,7 +560,7 @@ int main(int argc, char *argv[]) heap_close(file2); printf("- Creating output heap-file 2\n"); - if (heap_create(filename2,1,keyinfo,reclength,0L,0L) || + if (heap_create(filename2,1,keyinfo,reclength,0L,0L,&hp_create_info) || !(file2= heap_open(filename2, 2))) goto err; |