summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorreggie@bob.(none) <>2005-01-29 09:25:56 -0600
committerreggie@bob.(none) <>2005-01-29 09:25:56 -0600
commit9af0b70d9e48cf9e16ebd4ea1b203dece9b7b575 (patch)
tree1b5c38ba520b2b6d9962f9b9f028cb3602948766 /client
parente9e4d936dcf324a030c2332c4270dc0e67d2b88c (diff)
downloadmariadb-git-9af0b70d9e48cf9e16ebd4ea1b203dece9b7b575.tar.gz
Bug #5185 mysqldump for windows database gets table names with different case
mysqldump.c: Trimmed some lines to be less than 80 chars. Using just NAME_LEN now for table name buffers
Diffstat (limited to 'client')
-rw-r--r--client/mysqldump.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c
index db86a3714c1..3a93adf5b36 100644
--- a/client/mysqldump.c
+++ b/client/mysqldump.c
@@ -2083,18 +2083,21 @@ static int dump_all_tables_in_db(char *database)
/*
- get_actual_table_name -- executes a SHOW TABLES LIKE '%s' to get the actual table name
- from the server for the table name given on the command line. we do this because
- the table name given on the command line may be a different case (e.g. T1 vs t1)
+ get_actual_table_name -- executes a SHOW TABLES LIKE '%s' to get the actual
+ table name from the server for the table name given on the command line.
+ we do this because the table name given on the command line may be a
+ different case (e.g. T1 vs t1)
RETURN
void
*/
-static void get_actual_table_name( const char *old_table_name, char *new_table_name, int buf_size )
+static void get_actual_table_name( const char *old_table_name,
+ char *new_table_name,
+ int buf_size )
{
MYSQL_RES *tableRes;
MYSQL_ROW row;
- char query[ NAME_LEN*2+3 + 50 ];
+ char query[ NAME_LEN + 50 ];
DBUG_ENTER("get_actual_table_name");
@@ -2144,7 +2147,7 @@ static int dump_selected_tables(char *db, char **table_names, int tables)
print_xml_tag1(md_result_file, "", "database name=", db, "\n");
for (; tables > 0 ; tables-- , table_names++)
{
- char new_table_name[NAME_LEN*+3];
+ char new_table_name[NAME_LEN];
/* the table name passed on commandline may be wrong case */
get_actual_table_name( *table_names, new_table_name, sizeof(new_table_name) );