mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
Merge quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/mar20/maint/50
into quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/mar20/maint/51 sql/sql_class.cc: Auto merged storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp: Auto merged storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: Auto merged storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp: Auto merged storage/ndb/src/kernel/blocks/dbtup/DbtupGen.cpp: Auto merged storage/ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp: Auto merged storage/ndb/src/mgmsrv/ConfigInfo.cpp: Auto merged storage/ndb/test/ndbapi/testNodeRestart.cpp: Auto merged storage/ndb/test/run-test/daily-basic-tests.txt: Auto merged storage/ndb/test/src/UtilTransactions.cpp: Auto merged
This commit is contained in:
commit
069355c68b
1 changed files with 6 additions and 8 deletions
|
@ -1322,7 +1322,6 @@ bool select_export::send_data(List<Item> &items)
|
|||
}
|
||||
row_count++;
|
||||
Item *item;
|
||||
char *buff_ptr=buff;
|
||||
uint used_length=0,items_left=items.elements;
|
||||
List_iterator_fast<Item> li(items);
|
||||
|
||||
|
@ -1422,19 +1421,18 @@ bool select_export::send_data(List<Item> &items)
|
|||
goto err;
|
||||
}
|
||||
}
|
||||
buff_ptr=buff; // Place separators here
|
||||
if (res && (!exchange->opt_enclosed || result_type == STRING_RESULT))
|
||||
{
|
||||
memcpy(buff_ptr,exchange->enclosed->ptr(),exchange->enclosed->length());
|
||||
buff_ptr+=exchange->enclosed->length();
|
||||
if (my_b_write(&cache, (byte*) exchange->enclosed->ptr(),
|
||||
exchange->enclosed->length()))
|
||||
goto err;
|
||||
}
|
||||
if (--items_left)
|
||||
{
|
||||
memcpy(buff_ptr,exchange->field_term->ptr(),field_term_length);
|
||||
buff_ptr+=field_term_length;
|
||||
if (my_b_write(&cache, (byte*) exchange->field_term->ptr(),
|
||||
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(),
|
||||
exchange->line_term->length()))
|
||||
|
|
Loading…
Reference in a new issue