Formatting improved
This commit is contained in:
parent
4f26b44318
commit
a6031b6425
@ -2912,15 +2912,6 @@ int parse_args(int argc, char **argv)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
char* safe_str_append(char *buf, const char *str, int size)
|
|
||||||
{
|
|
||||||
int i,c ;
|
|
||||||
for (i = 0; (c = *str++) && i < size - 1; i++)
|
|
||||||
*buf++ = c;
|
|
||||||
*buf = 0;
|
|
||||||
return buf;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Write the content of str into file
|
Write the content of str into file
|
||||||
@ -2931,6 +2922,7 @@ char* safe_str_append(char *buf, const char *str, int size)
|
|||||||
str - content to write to file
|
str - content to write to file
|
||||||
size - size of content witten to file
|
size - size of content witten to file
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static void str_to_file(const char *fname, char *str, int size)
|
static void str_to_file(const char *fname, char *str, int size)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
@ -2950,6 +2942,7 @@ static void str_to_file(const char *fname, char *str, int size)
|
|||||||
my_close(fd, MYF(0));
|
my_close(fd, MYF(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void dump_result_to_reject_file(const char *record_file, char *buf, int size)
|
void dump_result_to_reject_file(const char *record_file, char *buf, int size)
|
||||||
{
|
{
|
||||||
char reject_file[FN_REFLEN];
|
char reject_file[FN_REFLEN];
|
||||||
@ -2972,6 +2965,7 @@ static void replace_dynstr_append_mem(DYNAMIC_STRING *ds, const char *val,
|
|||||||
dynstr_append_mem(ds, val, len);
|
dynstr_append_mem(ds, val, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Append zero-terminated string to ds, with optional replace */
|
/* Append zero-terminated string to ds, with optional replace */
|
||||||
|
|
||||||
static void replace_dynstr_append(DYNAMIC_STRING *ds, const char *val)
|
static void replace_dynstr_append(DYNAMIC_STRING *ds, const char *val)
|
||||||
@ -3198,6 +3192,7 @@ static void append_metadata(DYNAMIC_STRING *ds,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Append affected row count and other info to output
|
Append affected row count and other info to output
|
||||||
*/
|
*/
|
||||||
@ -3220,6 +3215,7 @@ static void append_info(DYNAMIC_STRING* ds, ulong affected_rows,
|
|||||||
/*
|
/*
|
||||||
Display the table headings with the names tab separated
|
Display the table headings with the names tab separated
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static void append_table_headings(DYNAMIC_STRING *ds,
|
static void append_table_headings(DYNAMIC_STRING *ds,
|
||||||
MYSQL_FIELD *field,
|
MYSQL_FIELD *field,
|
||||||
uint num_fields)
|
uint num_fields)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user