Merge quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/mar20/b27231/41
into quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/mar20/b27231/50 sql/sql_class.cc: Auto merged
This commit is contained in:
commit
e83b7ba1e6
@ -1224,7 +1224,6 @@ bool select_export::send_data(List<Item> &items)
|
|||||||
}
|
}
|
||||||
row_count++;
|
row_count++;
|
||||||
Item *item;
|
Item *item;
|
||||||
char *buff_ptr=buff;
|
|
||||||
uint used_length=0,items_left=items.elements;
|
uint used_length=0,items_left=items.elements;
|
||||||
List_iterator_fast<Item> li(items);
|
List_iterator_fast<Item> li(items);
|
||||||
|
|
||||||
@ -1324,19 +1323,18 @@ bool select_export::send_data(List<Item> &items)
|
|||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
buff_ptr=buff; // Place separators here
|
|
||||||
if (res && (!exchange->opt_enclosed || result_type == STRING_RESULT))
|
if (res && (!exchange->opt_enclosed || result_type == STRING_RESULT))
|
||||||
{
|
{
|
||||||
memcpy(buff_ptr,exchange->enclosed->ptr(),exchange->enclosed->length());
|
if (my_b_write(&cache, (byte*) exchange->enclosed->ptr(),
|
||||||
buff_ptr+=exchange->enclosed->length();
|
exchange->enclosed->length()))
|
||||||
|
goto err;
|
||||||
}
|
}
|
||||||
if (--items_left)
|
if (--items_left)
|
||||||
{
|
{
|
||||||
memcpy(buff_ptr,exchange->field_term->ptr(),field_term_length);
|
if (my_b_write(&cache, (byte*) exchange->field_term->ptr(),
|
||||||
buff_ptr+=field_term_length;
|
field_term_length))
|
||||||
|
goto err;
|
||||||
}
|
}
|
||||||
if (my_b_write(&cache,(byte*) buff,(uint) (buff_ptr-buff)))
|
|
||||||
goto err;
|
|
||||||
}
|
}
|
||||||
if (my_b_write(&cache,(byte*) exchange->line_term->ptr(),
|
if (my_b_write(&cache,(byte*) exchange->line_term->ptr(),
|
||||||
exchange->line_term->length()))
|
exchange->line_term->length()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user