List:Commits« Previous MessageNext Message »
From:Georgi Kodinov Date:July 5 2012 2:29pm
Subject:bzr push into mysql-trunk branch (Georgi.Kodinov:3988 to 3989)
View as plain text  
 3989 Georgi Kodinov	2012-07-05 [merge]
      merge

    modified:
      client/mysql.cc
      sql-common/client.c
 3988 Georgi Kodinov	2012-07-05 [merge]
      merge

=== modified file 'client/mysql.cc'
--- a/client/mysql.cc	2012-07-05 07:18:42 +0000
+++ b/client/mysql.cc	2012-07-05 13:29:41 +0000
@@ -144,7 +144,7 @@ static my_bool ignore_errors=0,wait_flag
 	       vertical=0, line_numbers=1, column_names=1,opt_html=0,
                opt_xml=0,opt_nopager=1, opt_outfile=0, named_cmds= 0,
 	       tty_password= 0, opt_nobeep=0, opt_reconnect=1,
-	       opt_secure_auth= 0,
+	       opt_secure_auth= TRUE,
                default_pager_set= 0, opt_sigint_ignore= 0,
                auto_vertical_output= 0,
                show_warnings= 0, executing_query= 0, interrupted_query= 0,
@@ -1695,7 +1695,7 @@ static struct my_option my_long_options[
    1, ULONG_MAX, 0, 1, 0},
   {"secure-auth", OPT_SECURE_AUTH, "Refuse client connecting to server if it"
     " uses old (pre-4.1.1) protocol.", &opt_secure_auth,
-    &opt_secure_auth, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
+    &opt_secure_auth, 0, GET_BOOL, NO_ARG, 1, 0, 0, 0, 0, 0},
   {"server-arg", OPT_SERVER_ARG, "Send embedded server this as a parameter.",
    0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
   {"show-warnings", OPT_SHOW_WARNINGS, "Show warnings after every statement.",
@@ -4466,7 +4466,7 @@ sql_real_connect(char *host,char *databa
     mysql_options(&mysql, MYSQL_OPT_BIND, opt_bind_addr);
   if (opt_compress)
     mysql_options(&mysql,MYSQL_OPT_COMPRESS,NullS);
-  if (opt_secure_auth)
+  if (!opt_secure_auth)
     mysql_options(&mysql, MYSQL_SECURE_AUTH, (char *) &opt_secure_auth);
   if (using_opt_local_infile)
     mysql_options(&mysql,MYSQL_OPT_LOCAL_INFILE, (char*) &opt_local_infile);

=== modified file 'sql-common/client.c'
--- a/sql-common/client.c	2012-07-05 08:37:01 +0000
+++ b/sql-common/client.c	2012-07-05 13:29:41 +0000
@@ -1686,6 +1686,8 @@ mysql_init(MYSQL *mysql)
     (mysql.reconnect=0) will not see a behaviour change.
   */
   mysql->reconnect= 0;
+ 
+  mysql->options.secure_auth= TRUE;
 
   return mysql;
 }

No bundle (reason: useless for push emails).
Thread
bzr push into mysql-trunk branch (Georgi.Kodinov:3988 to 3989) Georgi Kodinov5 Jul