Commit cc66b447 authored by unknown's avatar unknown

Merge bk-internal.mysql.com:/home/bk/mysql-4.1

into narttu.mysql.fi:/my/mysql-4.1

parents 64d11bb3 d9a6a9ac
...@@ -553,14 +553,14 @@ int send_variant_2_list(MEM_ROOT *mem_root, Protocol *protocol, ...@@ -553,14 +553,14 @@ int send_variant_2_list(MEM_ROOT *mem_root, Protocol *protocol,
String **pointers= (String**)alloc_root(mem_root, String **pointers= (String**)alloc_root(mem_root,
sizeof(String*)*names->elements); sizeof(String*)*names->elements);
String **pos= pointers; String **pos;
String **end= pointers + names->elements;
List_iterator<String> it(*names); List_iterator<String> it(*names);
while ((*pos++= it++)); for ( pos= pointers; pos!=end; (*pos++= it++));
qsort(pointers,names->elements,sizeof(String*),string_ptr_cmp); qsort(pointers,names->elements,sizeof(String*),string_ptr_cmp);
String **end= pointers + names->elements;
for (pos= pointers; pos!=end; pos++) for (pos= pointers; pos!=end; pos++)
{ {
protocol->prepare_for_resend(); protocol->prepare_for_resend();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment