summaryrefslogtreecommitdiff
path: root/heap/hp_test1.c
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2006-06-30 02:25:35 +0300
committerunknown <monty@mysql.com>2006-06-30 02:25:35 +0300
commit77deeb7ee6b533f3cafac3524362cd783c79b2e8 (patch)
tree49d31bddbb621eb2ad5dc6fdaa0e992eb7f5869a /heap/hp_test1.c
parent3c79d36a9782523ef04e56781a555ae906258267 (diff)
downloadmariadb-git-77deeb7ee6b533f3cafac3524362cd783c79b2e8.tar.gz
Fixed include file usage
hp_test2 now works again Fixed wrong cast, which caused problems with gcc 4.0 and floats in prepared statements (Bug #19694) heap/hp_test1.c: Portability fix heap/hp_test2.c: Added max_table_size (fixes that hp_test2 works again) include/my_global.h: Fixed wrong cast, which caused problems with gcc 4.0 (Bug #19694) mysys/my_handler.c: Added missing include file strings/strtod.c: Fixed include files
Diffstat (limited to 'heap/hp_test1.c')
-rw-r--r--heap/hp_test1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/heap/hp_test1.c b/heap/hp_test1.c
index dd696528eb8..1efa97842c7 100644
--- a/heap/hp_test1.c
+++ b/heap/hp_test1.c
@@ -44,6 +44,7 @@ int main(int argc, char **argv)
get_options(argc,argv);
bzero(&hp_create_info, sizeof(hp_create_info));
+ hp_create_info.max_table_size= 1024L*1024L;
keyinfo[0].keysegs=1;
keyinfo[0].seg=keyseg;
@@ -58,7 +59,7 @@ 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,101L,
&hp_create_info) ||
!(file= heap_open(filename, 2)))
goto err;