summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2001-07-26 15:57:34 +0200
committerunknown <serg@serg.mysql.com>2001-07-26 15:57:34 +0200
commitcb6c87f3253e0828a50ce1f082d0da701cf51919 (patch)
tree84bd283daabccaa1b21cb2302859ef98903d453b /myisam
parent589a346953b404019bdbc8982486d61efd20b93c (diff)
downloadmariadb-git-cb6c87f3253e0828a50ce1f082d0da701cf51919.tar.gz
bulk insert bug fixed
myisam/mi_write.c: bug fixed mysql-test/t/insert_select.test: test case added mysql-test/r/insert_select.result: test case added
Diffstat (limited to 'myisam')
-rw-r--r--myisam/mi_write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/myisam/mi_write.c b/myisam/mi_write.c
index 32b767b1433..132083ae1aa 100644
--- a/myisam/mi_write.c
+++ b/myisam/mi_write.c
@@ -794,10 +794,10 @@ int _mi_init_bulk_insert(MI_INFO *info)
params=(bulk_insert_param *)(info->bulk_insert+share->base.keys);
for (i=0 ; i < share->base.keys ; i++,key++)
{
- params->info=info;
- params->keynr=i;
if (test(key_map & ((ulonglong) 1 << i)))
{
+ params->info=info;
+ params->keynr=i;
init_tree(& info->bulk_insert[i], 0,
myisam_bulk_insert_tree_size / num_keys, 0,
(qsort_cmp2)keys_compare, 0,