diff options
author | unknown <patg@krsna.patg.net> | 2005-09-27 09:40:51 -0700 |
---|---|---|
committer | unknown <patg@krsna.patg.net> | 2005-09-27 09:40:51 -0700 |
commit | 13651fa55b79bfc96c10c98841cf63a2b5532db3 (patch) | |
tree | 3b349d4aaf4228b90483e8ca3eb11342b019fea1 /client/mysqldump.c | |
parent | f0a9ad917a7d30563e0664020d8066cb30beb6bb (diff) | |
download | mariadb-git-13651fa55b79bfc96c10c98841cf63a2b5532db3.tar.gz |
BUG #7815 - Post-review fixes required for push.
client/mysqldump.c:
BUG #7815
Pre-push fixes requested per Sergei's review.
Diffstat (limited to 'client/mysqldump.c')
-rw-r--r-- | client/mysqldump.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c index 5d1a6c175bf..460297cd1b2 100644 --- a/client/mysqldump.c +++ b/client/mysqldump.c @@ -2959,7 +2959,7 @@ static void print_value(FILE *file, MYSQL_RES *result, MYSQL_ROW row, char check_if_ignore_table(const char *table_name, char *table_type) { - bool result= IGNORE_NONE; + char result= IGNORE_NONE; char buff[FN_REFLEN+80], show_name_buff[FN_REFLEN]; MYSQL_RES *res; MYSQL_ROW row; @@ -2977,7 +2977,7 @@ char check_if_ignore_table(const char *table_name, char *table_type) fprintf(stderr, "-- Warning: Couldn't get status information for table %s (%s)\n", table_name,mysql_error(sock)); - DBUG_RETURN(IGNORE_NONE); /* assume table is ok */ + DBUG_RETURN(result); /* assume table is ok */ } } if (!(row= mysql_fetch_row(res))) @@ -2986,10 +2986,10 @@ char check_if_ignore_table(const char *table_name, char *table_type) "Error: Couldn't read status information for table %s (%s)\n", table_name, mysql_error(sock)); mysql_free_result(res); - DBUG_RETURN(IGNORE_NONE); /* assume table is ok */ + DBUG_RETURN(result); /* assume table is ok */ } if (!(row[1])) - strcpy(table_type,"VIEW"); + strmake(table_type,"VIEW", NAME_LEN-1); else { /* @@ -2998,7 +2998,7 @@ char check_if_ignore_table(const char *table_name, char *table_type) these types, but we do want to use delayed inserts in the dump if the table type is _NOT_ one of these types */ - sprintf(table_type, "%s",row[1]); + strmake(table_type, row[1], NAME_LEN-1); if (opt_delayed) { if (strcmp(table_type,"MyISAM") && |