From cce9e51a708f46fa1915208762864d83df6e5a8c Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 31 Jul 2003 09:00:22 +0500 Subject: [PATCH] mysqldump.c: Use the default character set instead of binary. This is to make "mysqlshow" -> "cat'n'paste database name" -> "mysqldump dbname" circle working. client/mysqldump.c: Use the default character set instead of binary. This is to make "mysqlshow" -> "cat'n'paste database name" -> "mysqldump dbname" circle working. --- client/mysqldump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/mysqldump.c b/client/mysqldump.c index 4eb6d74cdf1..2c8628d10a8 100644 --- a/client/mysqldump.c +++ b/client/mysqldump.c @@ -86,9 +86,10 @@ static MYSQL mysql_connection,*sock=0; static char insert_pat[12 * 1024],*opt_password=0,*current_user=0, *current_host=0,*path=0,*fields_terminated=0, *lines_terminated=0, *enclosed=0, *opt_enclosed=0, *escaped=0, - *where=0, *default_charset= (char *) "binary", + *where=0, *opt_compatible_mode_str= 0, *err_ptr= 0; +static char *default_charset= (char*) MYSQL_DEFAULT_CHARSET_NAME; static ulong opt_compatible_mode= 0; static uint opt_mysql_port= 0, err_len= 0; static my_string opt_mysql_unix_port=0;