mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
mysqldump.c:
SET NAMES is not sent to server when SET NAMES is not dumped Server decides which character set to use in this case client/mysqldump.c: SET NAMES is not sent to server when SET NAMES is not dumped Server decides which character set to use in this case
This commit is contained in:
parent
8484e6f759
commit
47e0ca90d3
1 changed files with 2 additions and 1 deletions
|
|
@ -565,7 +565,8 @@ static int dbConnect(char *host, char *user,char *passwd)
|
|||
if (shared_memory_base_name)
|
||||
mysql_options(&mysql_connection,MYSQL_SHARED_MEMORY_BASE_NAME,shared_memory_base_name);
|
||||
#endif
|
||||
mysql_options(&mysql_connection, MYSQL_SET_CHARSET_NAME, default_charset);
|
||||
if (!opt_set_names)
|
||||
mysql_options(&mysql_connection, MYSQL_SET_CHARSET_NAME, default_charset);
|
||||
if (!(sock= mysql_real_connect(&mysql_connection,host,user,passwd,
|
||||
NULL,opt_mysql_port,opt_mysql_unix_port,
|
||||
0)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue