]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- outdated
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 23 Apr 2008 20:35:16 +0000 (20:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mysql-NDB_CXXFLAGS.patch -> 1.3
    mysql-bug-18156.patch -> 1.2
    mysql-bug-29082.patch -> 1.2
    mysql-bug-34655.patch -> 1.2
    mysql-bug-34945.patch -> 1.4
    mysql-ssl.patch -> 1.3

mysql-NDB_CXXFLAGS.patch [deleted file]
mysql-bug-18156.patch [deleted file]
mysql-bug-29082.patch [deleted file]
mysql-bug-34655.patch [deleted file]
mysql-bug-34945.patch [deleted file]
mysql-ssl.patch [deleted file]

diff --git a/mysql-NDB_CXXFLAGS.patch b/mysql-NDB_CXXFLAGS.patch
deleted file mode 100644 (file)
index fee096d..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- mysql-5.1.12-beta/config/ac-macros/ha_ndbcluster.m4~       2006-10-26 15:01:57.000000000 +0300
-+++ mysql-5.1.12-beta/config/ac-macros/ha_ndbcluster.m4        2006-11-03 13:40:07.479721306 +0200
-@@ -197,7 +197,7 @@
-   MAKE_BINARY_DISTRIBUTION_OPTIONS="$MAKE_BINARY_DISTRIBUTION_OPTIONS --with-ndbcluster"
--  CXXFLAGS="$CXXFLAGS \$(NDB_CXXFLAGS)"
-+  CXXFLAGS="$CXXFLAGS $NDB_CXXFLAGS"
-   if test "$have_ndb_debug" = "default"
-   then
-     have_ndb_debug=$with_debug
diff --git a/mysql-bug-18156.patch b/mysql-bug-18156.patch
deleted file mode 100644 (file)
index d8c1f80..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-From: Ignacio&nbsp;GalarzaDate: December 14 2006 10:41pm
-Subject: bk commit into 5.0 tree (iggy:1.2355) BUG#18156
-
-Below is the list of changes that have just been committed into a local
-5.0 repository of iggy. When iggy does a push these changes will
-be propagated to the main repository and, within 24 hours after the
-push, to the public repository.
-For information on how to access the public repository
-see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
-
-ChangeSet@stripped, 2006-12-14 16:41:24-05:00, iggy@alf. +1 -0
-  Bug#18156 mysql_upgrade does not pass basedir or password arg to mysql and mysqlcheck
-  - mysql_upgrade improperly reads the password and protocol options from command line.
-
-  client/mysql_upgrade.c@stripped, 2006-12-14 16:40:41-05:00, iggy@alf. +5 -3
-    Bug#18156 mysql_upgrade does not pass basedir or password arg to mysql and mysqlcheck
-    - The password and protocol options were not being associate with their variables
-    properly.
-
-# This is a BitKeeper patch.  What follows are the unified diffs for the
-# set of deltas contained in the patch.  The rest of the patch, the part
-# that BitKeeper cares about, is below these diffs.
-# User:        iggy
-# Host:        alf.
-# Root:        D:/src/mysql-5.0-maint_18156
-
---- 1.14/client/mysql_upgrade.c        2006-12-14 16:41:35 -05:00
-+++ 1.15/client/mysql_upgrade.c        2006-12-14 16:41:35 -05:00
-@@ -90,7 +90,8 @@
-    (gptr*) &current_host, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
-   {"password", 'p',
-    "Password to use when connecting to server. If password is not given"
--   " it's solicited on the tty.", 0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
-+   " it's solicited on the tty.", (gptr*) &opt_password, (gptr*) &opt_password,
-+   0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
- #ifdef __WIN__
-   {"pipe", 'W', "Use named pipes to connect to server.", 0, 0, 0, 
-    GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
-@@ -98,8 +99,9 @@
-   {"port", 'P', "Port number to use for connection.", (gptr*) &opt_mysql_port,
-    (gptr*) &opt_mysql_port, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
-   {"protocol", OPT_MYSQL_PROTOCOL,
--   "The protocol of connection (tcp,socket,pipe,memory).",
--   0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
-+   "The protocol of connection (tcp,socket,pipe,memory).", 
-+   (gptr*) &opt_protocol, (gptr*) &opt_protocol, 0, GET_STR, REQUIRED_ARG, 0,
-+   0, 0, 0, 0, 0},
- #ifdef HAVE_SMEM
-   {"shared-memory-base-name", OPT_SHARED_MEMORY_BASE_NAME,
-    "Base name of shared memory.", (gptr*) &shared_memory_base_name, 
diff --git a/mysql-bug-29082.patch b/mysql-bug-29082.patch
deleted file mode 100644 (file)
index 0cb62d9..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
---- mysql-5.0.41/scripts/mysqlhotcopy.sh~      2007-06-21 14:37:22.000000000 +0300
-+++ mysql-5.0.41/scripts/mysqlhotcopy.sh       2007-06-21 14:37:24.924257114 +0300
-@@ -605,7 +605,12 @@
-       # add recursive option for scp
-       $cp.= " -r" if $^O =~ /m^(solaris|linux|freebsd|darwin)$/ && $method =~ /^scp\b/;
--      my @non_raid = map { "'$_'" } grep { ! m:/$raid_dir_regex/[^/]+$: } @$files;
-+      my @non_raid;
-+      if (@$raid_dirs) {
-+          @non_raid = map { "'$_'" } grep { ! m:/$raid_dir_regex/[^/]+$: } @$files;
-+      } else {
-+          @non_raid = @$files;
-+      }
-       # add files to copy and the destination directory
-       safe_system( $cp, @non_raid, "'$target'" ) if (@non_raid);
diff --git a/mysql-bug-34655.patch b/mysql-bug-34655.patch
deleted file mode 100644 (file)
index bf2f893..0000000
+++ /dev/null
@@ -1,774 +0,0 @@
-
-#### ChangeSet ####
-2008-02-28 14:55:46-03:00, davi@mysql.com 
-  Bug#34655 Compile error
-  
-  Rename client_last_error to last_error and client_last_errno to last_errno
-  to not break connectors which use the internal net structure for error handling.
-
-==== include/mysql_com.h ====
-2008-02-28 14:55:42-03:00, davi@mysql.com +2 -2
-  Rename client_last_error to last_error, client_last_errno to last_errno.
-
---- 1.128/include/mysql_com.h  2007-12-14 05:01:09 -08:00
-+++ 1.129/include/mysql_com.h  2008-02-28 09:55:42 -08:00
-@@ -217,12 +217,12 @@ typedef struct st_net {
-     functions and methods to maintain proper locking.
-   */
-   unsigned char *query_cache_query;
--  unsigned int client_last_errno;
-+  unsigned int last_errno;
-   unsigned char error; 
-   my_bool unused2; /* Please remove with the next incompatible ABI change. */
-   my_bool return_errno;
-   /** Client library error message buffer. Actually belongs to struct MYSQL. */
--  char client_last_error[MYSQL_ERRMSG_SIZE];
-+  char last_error[MYSQL_ERRMSG_SIZE];
-   /** Client library sqlstate buffer. Set along with the error message. */
-   char sqlstate[SQLSTATE_LENGTH+1];
-   void *extension;
-
-==== include/mysql_h.ic ====
-2008-02-28 14:55:42-03:00, davi@mysql.com +42 -42
-  Rename client_last_error to last_error, client_last_errno to last_errno.
-
---- 1.15/include/mysql_h.ic    2007-12-12 07:20:53 -08:00
-+++ 1.16/include/mysql_h.ic    2008-02-28 09:55:42 -08:00
-@@ -106,9 +106,9 @@ typedef struct st_mysql_ftparser_param M
- typedef struct st_mysql_methods MYSQL_METHODS;
- # 47 "mysql_time.h"
- typedef struct st_mysql_time MYSQL_TIME;
--# 384 "mysql_com.h"
-+# 383 "mysql_com.h"
- typedef struct st_udf_args UDF_ARGS;
--# 398 "mysql_com.h"
-+# 397 "mysql_com.h"
- typedef struct st_udf_init UDF_INIT;
- # 26 "my_alloc.h"
- typedef struct st_used_mem USED_MEM;
-@@ -130,7 +130,7 @@ struct __attribute__((aligned(__alignof_
-     unsigned int mbminlen;
-     unsigned int mbmaxlen;
-   };
--# 370 "mysql_com.h"
-+# 369 "mysql_com.h"
- struct __attribute__((aligned(__alignof__(unsigned long int)), aligned(__alignof__(double)))) rand_struct
-   {
-     unsigned long int seed1;
-@@ -542,11 +542,11 @@ struct __attribute__((aligned(__alignof_
-     my_bool compress;
-     my_bool unused1;
-     unsigned char * query_cache_query;
--    unsigned int client_last_errno;
-+    unsigned int last_errno;
-     unsigned char error;
-     my_bool unused2;
-     my_bool return_errno;
--    char client_last_error[512];
-+    char last_error[512];
-     char sqlstate[(5 + 1)];
-     void * extension;
-   };
-@@ -558,7 +558,7 @@ struct __attribute__((aligned(__alignof_
-     char const * * type_names;
-     unsigned int * type_lengths;
-   };
--# 384 "mysql_com.h"
-+# 383 "mysql_com.h"
- struct __attribute__((aligned(__alignof__(unsigned int)), aligned(__alignof__(void *)))) st_udf_args
-   {
-     unsigned int arg_count;
-@@ -570,7 +570,7 @@ struct __attribute__((aligned(__alignof_
-     unsigned long int * attribute_lengths;
-     void * extension;
-   };
--# 398 "mysql_com.h"
-+# 397 "mysql_com.h"
- struct __attribute__((aligned(__alignof__(unsigned long int)), aligned(__alignof__(void *)))) st_udf_init
-   {
-     my_bool maybe_null;
-@@ -587,7 +587,7 @@ struct __attribute__((aligned(__alignof_
-     unsigned int left;
-     unsigned int size;
-   };
--# 381 "mysql_com.h"
-+# 380 "mysql_com.h"
- enum Item_result
-   {
-     STRING_RESULT = 0,
-@@ -596,7 +596,7 @@ enum Item_result
-     ROW_RESULT = 3,
-     DECIMAL_RESULT = 4,
-   };
--# 322 "mysql_com.h"
-+# 321 "mysql_com.h"
- enum enum_cursor_type
-   {
-     CURSOR_TYPE_NO_CURSOR = 0,
-@@ -604,7 +604,7 @@ enum enum_cursor_type
-     CURSOR_TYPE_FOR_UPDATE = 2,
-     CURSOR_TYPE_SCROLLABLE = 4,
-   };
--# 235 "mysql_com.h"
-+# 234 "mysql_com.h"
- enum enum_field_types
-   {
-     MYSQL_TYPE_DECIMAL = 0,
-@@ -651,7 +651,7 @@ enum enum_ftparser_mode
-     MYSQL_FTPARSER_WITH_STOPWORDS = 1,
-     MYSQL_FTPARSER_FULL_BOOLEAN_INFO = 2,
-   };
--# 332 "mysql_com.h"
-+# 331 "mysql_com.h"
- enum enum_mysql_set_option
-   {
-     MYSQL_OPTION_MULTI_STATEMENTS_ON = 0,
-@@ -730,7 +730,7 @@ enum enum_stmt_attr_type
-     STMT_ATTR_CURSOR_TYPE = 1,
-     STMT_ATTR_PREFETCH_ROWS = 2,
-   };
--# 297 "mysql_com.h"
-+# 296 "mysql_com.h"
- enum mysql_enum_shutdown_level
-   {
-     SHUTDOWN_DEFAULT = 0,
-@@ -790,13 +790,13 @@ enum mysql_status
-     MYSQL_STATUS_GET_RESULT = 1,
-     MYSQL_STATUS_USE_RESULT = 2,
-   };
--# 439 "mysql_com.h"
-+# 441 "mysql_com.h"
- extern my_bool check_scramble(char const * reply, char const * message, unsigned char const * hash_stage2);
--# 432 "mysql_com.h"
-+# 434 "mysql_com.h"
- extern my_bool check_scramble_323(char const *, char const * message, unsigned long int * salt);
- # 35 "typelib.h"
- extern TYPELIB * copy_typelib(MEM_ROOT * root, TYPELIB * from);
--# 427 "mysql_com.h"
-+# 429 "mysql_com.h"
- extern void create_random_string(char * to, unsigned int, struct rand_struct * rand_st);
- # 32 "typelib.h"
- extern int find_type(char * x, TYPELIB const * typelib, unsigned int);
-@@ -804,15 +804,15 @@ extern int find_type(char * x, TYPELIB c
- extern int find_type_or_exit(char const * x, TYPELIB * typelib, char const * option);
- # 29 "typelib.h"
- extern my_ulonglong find_typeset(char * x, TYPELIB * typelib, int * error_position);
--# 441 "mysql_com.h"
-+# 443 "mysql_com.h"
- extern void get_salt_from_password(unsigned char * res, char const * password);
--# 434 "mysql_com.h"
-+# 436 "mysql_com.h"
- extern void get_salt_from_password_323(unsigned long int * res, char const * password);
--# 447 "mysql_com.h"
-+# 449 "mysql_com.h"
- extern char * get_tty_password(char const * opt_message);
- # 34 "typelib.h"
- extern char const * get_type(TYPELIB * typelib, unsigned int);
--# 429 "mysql_com.h"
-+# 431 "mysql_com.h"
- extern void hash_password(unsigned long int * to, char const * password, unsigned int);
- # 30 "my_list.h"
- extern LIST * list_add(LIST * root, LIST * element);
-@@ -828,31 +828,31 @@ extern unsigned int list_length(LIST *);
- extern LIST * list_reverse(LIST * root);
- # 36 "my_list.h"
- extern int list_walk(LIST *, list_walk_action, unsigned char * argument);
--# 442 "mysql_com.h"
-+# 444 "mysql_com.h"
- extern void make_password_from_salt(char * to, unsigned char const * hash_stage2);
--# 435 "mysql_com.h"
--extern void make_password_from_salt_323(char * to, unsigned long int const * salt);
- # 437 "mysql_com.h"
-+extern void make_password_from_salt_323(char * to, unsigned long int const * salt);
-+# 439 "mysql_com.h"
- extern void make_scrambled_password(char * to, char const * password);
--# 430 "mysql_com.h"
-+# 432 "mysql_com.h"
- extern void make_scrambled_password_323(char * to, char const * password);
- # 33 "typelib.h"
- extern void make_type(char * to, unsigned int, TYPELIB * typelib);
--# 367 "mysql_com.h"
-+# 366 "mysql_com.h"
- extern int my_connect(my_socket, struct sockaddr const * name, unsigned int, unsigned int);
--# 344 "mysql_com.h"
-+# 343 "mysql_com.h"
- extern my_bool my_net_init(NET * net, Vio * vio);
--# 345 "mysql_com.h"
-+# 344 "mysql_com.h"
- extern void my_net_local_init(NET * net);
--# 355 "mysql_com.h"
-+# 354 "mysql_com.h"
- extern unsigned long int my_net_read(NET * net);
--# 350 "mysql_com.h"
-+# 349 "mysql_com.h"
- extern my_bool my_net_write(NET * net, unsigned char const * packet, size_t);
--# 426 "mysql_com.h"
-+# 428 "mysql_com.h"
- extern double my_rnd(struct rand_struct *);
--# 453 "mysql_com.h"
-+# 455 "mysql_com.h"
- extern void my_thread_end(void);
--# 452 "mysql_com.h"
-+# 454 "mysql_com.h"
- extern my_bool my_thread_init(void);
- # 560 "mysql.h"
- extern void myodbc_remove_escape(MYSQL * mysql, char * name);
-@@ -890,7 +890,7 @@ extern void mysql_enable_rpl_parse(MYSQL
- extern my_bool mysql_eof(MYSQL_RES * res);
- # 423 "mysql.h"
- extern unsigned int mysql_errno(MYSQL * mysql);
--# 448 "mysql_com.h"
-+# 450 "mysql_com.h"
- extern char const * mysql_errno_to_sqlstate(unsigned int);
- # 424 "mysql.h"
- extern char const * mysql_error(MYSQL * mysql);
-@@ -1108,25 +1108,25 @@ extern char * mysql_unix_port;
- extern MYSQL_RES * mysql_use_result(MYSQL * mysql);
- # 426 "mysql.h"
- extern unsigned int mysql_warning_count(MYSQL * mysql);
--# 347 "mysql_com.h"
--extern void net_clear(NET * net, my_bool);
- # 346 "mysql_com.h"
-+extern void net_clear(NET * net, my_bool);
-+# 345 "mysql_com.h"
- extern void net_end(NET * net);
--# 349 "mysql_com.h"
-+# 348 "mysql_com.h"
- extern my_bool net_flush(NET * net);
--# 354 "mysql_com.h"
-+# 353 "mysql_com.h"
- extern int net_real_write(NET * net, unsigned char const * packet, size_t);
--# 348 "mysql_com.h"
-+# 347 "mysql_com.h"
- extern my_bool net_realloc(NET * net, size_t);
--# 351 "mysql_com.h"
-+# 350 "mysql_com.h"
- extern my_bool net_write_command(NET * net, unsigned char, unsigned char const * header, size_t, unsigned char const * packet, size_t);
--# 443 "mysql_com.h"
-+# 445 "mysql_com.h"
- extern char * octet2hex(char * to, char const * str, unsigned int);
--# 424 "mysql_com.h"
-+# 426 "mysql_com.h"
- extern void randominit(struct rand_struct *, unsigned long int, unsigned long int);
--# 438 "mysql_com.h"
-+# 440 "mysql_com.h"
- extern void scramble(char * to, char const * message, char const * password);
--# 431 "mysql_com.h"
-+# 433 "mysql_com.h"
- extern void scramble_323(char * to, char const * message, char const * password);
- # 37 "typelib.h"
- extern TYPELIB sql_protocol_typelib;
-
-==== libmysql/libmysql.c ====
-2008-02-28 14:55:42-03:00, davi@mysql.com +18 -18
-  Rename client_last_error to last_error, client_last_errno to last_errno.
-
---- 1.305.1.1/libmysql/libmysql.c      2008-02-18 14:29:35 -08:00
-+++ 1.305.1.2/libmysql/libmysql.c      2008-02-28 09:55:42 -08:00
-@@ -440,11 +440,11 @@ static void expand_error(MYSQL* mysql, i
-   char tmp[MYSQL_ERRMSG_SIZE];
-   char *p;
-   uint err_length;
--  strmake(tmp, mysql->net.client_last_error, MYSQL_ERRMSG_SIZE-1);
--  p = strmake(mysql->net.client_last_error, ER(error), MYSQL_ERRMSG_SIZE-1);
--  err_length= (uint) (p - mysql->net.client_last_error);
-+  strmake(tmp, mysql->net.last_error, MYSQL_ERRMSG_SIZE-1);
-+  p = strmake(mysql->net.last_error, ER(error), MYSQL_ERRMSG_SIZE-1);
-+  err_length= (uint) (p - mysql->net.last_error);
-   strmake(p, tmp, MYSQL_ERRMSG_SIZE-1 - err_length);
--  mysql->net.client_last_errno = error;
-+  mysql->net.last_errno = error;
- }
- /*
-@@ -870,10 +870,10 @@ my_bool handle_local_infile(MYSQL *mysql
-     VOID(my_net_write(net,(const uchar*) "",0)); /* Server needs one packet */
-     net_flush(net);
-     strmov(net->sqlstate, unknown_sqlstate);
--    net->client_last_errno=
-+    net->last_errno=
-       (*options->local_infile_error)(li_ptr,
--                                     net->client_last_error,
--                                     sizeof(net->client_last_error)-1);
-+                                     net->last_error,
-+                                     sizeof(net->last_error)-1);
-     goto err;
-   }
-@@ -900,10 +900,10 @@ my_bool handle_local_infile(MYSQL *mysql
-   if (readcount < 0)
-   {
--    net->client_last_errno=
-+    net->last_errno=
-       (*options->local_infile_error)(li_ptr,
--                                     net->client_last_error,
--                                     sizeof(net->client_last_error)-1);
-+                                     net->last_error,
-+                                     sizeof(net->last_error)-1);
-     goto err;
-   }
-@@ -1397,7 +1397,7 @@ const char *cli_read_statistics(MYSQL *m
-   if (!mysql->net.read_pos[0])
-   {
-     set_mysql_error(mysql, CR_WRONG_HOST_INFO, unknown_sqlstate);
--    return mysql->net.client_last_error;
-+    return mysql->net.last_error;
-   }
-   return (char*) mysql->net.read_pos;
- }
-@@ -1408,7 +1408,7 @@ mysql_stat(MYSQL *mysql)
- {
-   DBUG_ENTER("mysql_stat");
-   if (simple_command(mysql,COM_STATISTICS,0,0,0))
--    DBUG_RETURN(mysql->net.client_last_error);
-+    DBUG_RETURN(mysql->net.last_error);
-   DBUG_RETURN((*mysql->methods->read_statistics)(mysql));
- }
-@@ -1773,7 +1773,7 @@ static my_bool my_realloc_str(NET *net, 
-     if (res)
-     {
-       strmov(net->sqlstate, unknown_sqlstate);
--      strmov(net->client_last_error, ER(net->client_last_errno));
-+      strmov(net->last_error, ER(net->last_errno));
-     }
-     net->write_pos= net->buff+ buf_length;
-   }
-@@ -1825,14 +1825,14 @@ void set_stmt_errmsg(MYSQL_STMT *stmt, N
- {
-   DBUG_ENTER("set_stmt_errmsg");
-   DBUG_PRINT("enter", ("error: %d/%s '%s'",
--                       net->client_last_errno,
-+                       net->last_errno,
-                        net->sqlstate,
--                       net->client_last_error));
-+                       net->last_error));
-   DBUG_ASSERT(stmt != 0);
--  stmt->last_errno= net->client_last_errno;
--  if (net->client_last_error && net->client_last_error[0])
--    strmov(stmt->last_error, net->client_last_error);
-+  stmt->last_errno= net->last_errno;
-+  if (net->last_error && net->last_error[0])
-+    strmov(stmt->last_error, net->last_error);
-   strmov(stmt->sqlstate, net->sqlstate);
-   DBUG_VOID_RETURN;
-
-==== libmysql/manager.c ====
-2008-02-28 14:55:42-03:00, davi@mysql.com +1 -1
-  Rename client_last_error to last_error, client_last_errno to last_errno.
-
---- 1.19/libmysql/manager.c    2007-12-12 07:20:53 -08:00
-+++ 1.20/libmysql/manager.c    2008-02-28 09:55:42 -08:00
-@@ -160,7 +160,7 @@ MYSQL_MANAGER*  STDCALL mysql_manager_co
-   msg_len=strlen(msg_buf);
-   if (my_net_write(&con->net,(uchar*) msg_buf,msg_len) || net_flush(&con->net))
-   {
--    con->last_errno=con->net.client_last_errno;
-+    con->last_errno=con->net.last_errno;
-     strmov(con->last_error,"Write error on socket");
-     goto err;
-   }
-
-==== libmysqld/lib_sql.cc ====
-2008-02-28 14:55:42-03:00, davi@mysql.com +3 -3
-  Rename client_last_error to last_error, client_last_errno to last_errno.
-
---- 1.147/libmysqld/lib_sql.cc 2007-12-20 12:24:01 -08:00
-+++ 1.147.1.1/libmysqld/lib_sql.cc     2008-02-28 09:55:42 -08:00
-@@ -61,8 +61,8 @@ void embedded_get_error(MYSQL *mysql, MY
- {
-   NET *net= &mysql->net;
-   struct embedded_query_result *ei= data->embedded_info;
--  net->client_last_errno= ei->last_errno;
--  strmake(net->client_last_error, ei->info, sizeof(net->client_last_error)-1);
-+  net->last_errno= ei->last_errno;
-+  strmake(net->last_error, ei->info, sizeof(net->last_error)-1);
-   memcpy(net->sqlstate, ei->sqlstate, sizeof(net->sqlstate));
-   mysql->server_status= ei->server_status;
-   my_free(data, MYF(0));
-@@ -685,7 +685,7 @@ int check_embedded_connection(MYSQL *mys
- err:
-   {
-     NET *net= &mysql->net;
--    strmake(net->client_last_error, thd->main_da.message(), sizeof(net->client_last_error)-1);
-+    strmake(net->last_error, thd->main_da.message(), sizeof(net->last_error)-1);
-     memcpy(net->sqlstate,
-            mysql_errno_to_sqlstate(thd->main_da.sql_errno()),
-            sizeof(net->sqlstate)-1);
-
-==== libmysqld/libmysqld.c ====
-2008-02-28 14:55:42-03:00, davi@mysql.com +2 -2
-  Rename client_last_error to last_error, client_last_errno to last_errno.
-
---- 1.76/libmysqld/libmysqld.c 2007-12-12 07:20:53 -08:00
-+++ 1.77/libmysqld/libmysqld.c 2008-02-28 09:55:42 -08:00
-@@ -210,8 +210,8 @@ mysql_real_connect(MYSQL *mysql,const ch
- error:
-   DBUG_PRINT("error",("message: %u (%s)",
--                      mysql->net.client_last_errno,
--                      mysql->net.client_last_error));
-+                      mysql->net.last_errno,
-+                      mysql->net.last_error));
-   {
-     /* Free alloced memory */
-     my_bool free_me=mysql->free_me;
-
-==== server-tools/instance-manager/mysql_connection.cc ====
-2008-02-28 14:55:42-03:00, davi@mysql.com +1 -1
-  Rename client_last_error to last_error, client_last_errno to last_errno.
-
---- 1.31/server-tools/instance-manager/mysql_connection.cc     2007-12-12 07:20:54 -08:00
-+++ 1.32/server-tools/instance-manager/mysql_connection.cc     2008-02-28 09:55:42 -08:00
-@@ -257,7 +257,7 @@ int Mysql_connection::do_command()
-       return 1;
-     if (thread_registry->is_shutdown())
-       return 1;
--    net_send_error(&net, net.client_last_errno);
-+    net_send_error(&net, net.last_errno);
-     net.error= 0;
-     return 0;
-   }
-
-==== sql-common/client.c ====
-2008-02-28 14:55:43-03:00, davi@mysql.com +30 -30
-  Rename client_last_error to last_error, client_last_errno to last_errno.
-
---- 1.152/sql-common/client.c  2008-02-22 09:45:43 -08:00
-+++ 1.153/sql-common/client.c  2008-02-28 09:55:43 -08:00
-@@ -289,8 +289,8 @@ void set_mysql_error(MYSQL *mysql, int e
-   DBUG_ASSERT(mysql != 0);
-   net= &mysql->net;
--  net->client_last_errno= errcode;
--  strmov(net->client_last_error, ER(errcode));
-+  net->last_errno= errcode;
-+  strmov(net->last_error, ER(errcode));
-   strmov(net->sqlstate, sqlstate);
-   DBUG_VOID_RETURN;
-@@ -304,8 +304,8 @@ void set_mysql_error(MYSQL *mysql, int e
- void net_clear_error(NET *net)
- {
--  net->client_last_errno= 0;
--  net->client_last_error[0]= '\0';
-+  net->last_errno= 0;
-+  net->last_error[0]= '\0';
-   strmov(net->sqlstate, not_error_sqlstate);
- }
-@@ -331,9 +331,9 @@ static void set_mysql_extended_error(MYS
-   DBUG_ASSERT(mysql != 0);
-   net= &mysql->net;
--  net->client_last_errno= errcode;
-+  net->last_errno= errcode;
-   va_start(args, format);
--  my_vsnprintf(net->client_last_error, sizeof(net->client_last_error)-1,
-+  my_vsnprintf(net->last_error, sizeof(net->last_error)-1,
-                format, args);
-   va_end(args);
-   strmov(net->sqlstate, sqlstate);
-@@ -667,7 +667,7 @@ cli_safe_read(MYSQL *mysql)
-       return (packet_error);
- #endif /*MYSQL_SERVER*/
-     end_server(mysql);
--    set_mysql_error(mysql, net->client_last_errno == ER_NET_PACKET_TOO_LARGE ?
-+    set_mysql_error(mysql, net->last_errno == ER_NET_PACKET_TOO_LARGE ?
-                     CR_NET_PACKET_TOO_LARGE: CR_SERVER_LOST, unknown_sqlstate);
-     return (packet_error);
-   }
-@@ -676,7 +676,7 @@ cli_safe_read(MYSQL *mysql)
-     if (len > 3)
-     {
-       char *pos=(char*) net->read_pos+1;
--      net->client_last_errno=uint2korr(pos);
-+      net->last_errno=uint2korr(pos);
-       pos+=2;
-       len-=2;
-       if (protocol_41(mysql) && pos[0] == '#')
-@@ -684,8 +684,8 @@ cli_safe_read(MYSQL *mysql)
-       strmake(net->sqlstate, pos+1, SQLSTATE_LENGTH);
-       pos+= SQLSTATE_LENGTH+1;
-       }
--      (void) strmake(net->client_last_error,(char*) pos,
--                   min((uint) len,(uint) sizeof(net->client_last_error)-1));
-+      (void) strmake(net->last_error,(char*) pos,
-+                   min((uint) len,(uint) sizeof(net->last_error)-1));
-     }
-     else
-       set_mysql_error(mysql, CR_UNKNOWN_ERROR, unknown_sqlstate);
-@@ -701,9 +701,9 @@ cli_safe_read(MYSQL *mysql)
-     mysql->server_status&= ~SERVER_MORE_RESULTS_EXISTS;
-     DBUG_PRINT("error",("Got error: %d/%s (%s)",
--                        net->client_last_errno,
-+                        net->last_errno,
-                         net->sqlstate,
--                        net->client_last_error));
-+                        net->last_error));
-     return(packet_error);
-   }
-   return len;
-@@ -760,7 +760,7 @@ cli_advanced_command(MYSQL *mysql, enum 
-   {
-     DBUG_PRINT("error",("Can't send command to server. Error: %d",
-                       socket_errno));
--    if (net->client_last_errno == ER_NET_PACKET_TOO_LARGE)
-+    if (net->last_errno == ER_NET_PACKET_TOO_LARGE)
-     {
-       set_mysql_error(mysql, CR_NET_PACKET_TOO_LARGE, unknown_sqlstate);
-       goto end;
-@@ -845,7 +845,7 @@ static my_bool is_NT(void)
-   @retval  0   success
-   @retval  !0  network error or the server is not commercial.
--               Error code is saved in mysql->net.client_last_errno.
-+               Error code is saved in mysql->net.last_errno.
- */
- static int check_license(MYSQL *mysql)
-@@ -858,7 +858,7 @@ static int check_license(MYSQL *mysql)
-   if (mysql_real_query(mysql, query, sizeof(query)-1))
-   {
--    if (net->client_last_errno == ER_UNKNOWN_SYSTEM_VARIABLE)
-+    if (net->last_errno == ER_UNKNOWN_SYSTEM_VARIABLE)
-     {
-       set_mysql_extended_error(mysql, CR_WRONG_LICENSE, unknown_sqlstate,
-                                ER(CR_WRONG_LICENSE), required_license);
-@@ -873,7 +873,7 @@ static int check_license(MYSQL *mysql)
-     two is ever true for server variables now), or column value
-     mismatch, set wrong license error.
-   */
--  if (!net->client_last_errno &&
-+  if (!net->last_errno &&
-       (!row || !row[0] ||
-        strncmp(row[0], required_license, sizeof(required_license))))
-   {
-@@ -881,7 +881,7 @@ static int check_license(MYSQL *mysql)
-                              ER(CR_WRONG_LICENSE), required_license);
-   }
-   mysql_free_result(res);
--  return net->client_last_errno;
-+  return net->last_errno;
- }
- #endif /* CHECK_LICENSE */
-@@ -2090,7 +2090,7 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,cons
-   if ((pkt_length=cli_safe_read(mysql)) == packet_error)
-   {
--    if (mysql->net.client_last_errno == CR_SERVER_LOST)
-+    if (mysql->net.last_errno == CR_SERVER_LOST)
-       set_mysql_extended_error(mysql, CR_SERVER_LOST, unknown_sqlstate,
-                                ER(CR_SERVER_LOST_EXTENDED),
-                                "reading initial communication packet",
-@@ -2324,7 +2324,7 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,cons
-   if ((pkt_length=cli_safe_read(mysql)) == packet_error)
-   {
--    if (mysql->net.client_last_errno == CR_SERVER_LOST)
-+    if (mysql->net.last_errno == CR_SERVER_LOST)
-       set_mysql_extended_error(mysql, CR_SERVER_LOST, unknown_sqlstate,
-                                ER(CR_SERVER_LOST_EXTENDED),
-                                "reading authorization packet",
-@@ -2352,7 +2352,7 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,cons
-     /* Read what server thinks about out new auth message report */
-     if (cli_safe_read(mysql) == packet_error)
-     {
--      if (mysql->net.client_last_errno == CR_SERVER_LOST)
-+      if (mysql->net.last_errno == CR_SERVER_LOST)
-         set_mysql_extended_error(mysql, CR_SERVER_LOST, unknown_sqlstate,
-                                  ER(CR_SERVER_LOST_EXTENDED),
-                                  "reading final connect information",
-@@ -2371,7 +2371,7 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,cons
-   if (db && mysql_select_db(mysql, db))
-   {
--    if (mysql->net.client_last_errno == CR_SERVER_LOST)
-+    if (mysql->net.last_errno == CR_SERVER_LOST)
-         set_mysql_extended_error(mysql, CR_SERVER_LOST, unknown_sqlstate,
-                                  ER(CR_SERVER_LOST_EXTENDED),
-                                  "Setting intital database",
-@@ -2415,9 +2415,9 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,cons
- error:
-   reset_sigpipe(mysql);
-   DBUG_PRINT("error",("message: %u/%s (%s)",
--                      net->client_last_errno,
-+                      net->last_errno,
-                       net->sqlstate,
--                      net->client_last_error));
-+                      net->last_error));
-   {
-     /* Free alloced memory */
-     end_server(mysql);
-@@ -2475,8 +2475,8 @@ my_bool mysql_reconnect(MYSQL *mysql)
-                         mysql->db, mysql->port, mysql->unix_socket,
-                         mysql->client_flag | CLIENT_REMEMBER_OPTIONS))
-   {
--    mysql->net.client_last_errno= tmp_mysql.net.client_last_errno;
--    strmov(mysql->net.client_last_error, tmp_mysql.net.client_last_error);
-+    mysql->net.last_errno= tmp_mysql.net.last_errno;
-+    strmov(mysql->net.last_error, tmp_mysql.net.last_error);
-     strmov(mysql->net.sqlstate, tmp_mysql.net.sqlstate);
-     DBUG_RETURN(1);
-   }
-@@ -2485,8 +2485,8 @@ my_bool mysql_reconnect(MYSQL *mysql)
-     DBUG_PRINT("error", ("mysql_set_character_set() failed"));
-     bzero((char*) &tmp_mysql.options,sizeof(tmp_mysql.options));
-     mysql_close(&tmp_mysql);
--    mysql->net.client_last_errno= tmp_mysql.net.client_last_errno;
--    strmov(mysql->net.client_last_error, tmp_mysql.net.client_last_error);
-+    mysql->net.last_errno= tmp_mysql.net.last_errno;
-+    strmov(mysql->net.last_error, tmp_mysql.net.last_error);
-     strmov(mysql->net.sqlstate, tmp_mysql.net.sqlstate);
-     DBUG_RETURN(1);
-   }
-@@ -3087,13 +3087,13 @@ unsigned int STDCALL mysql_num_fields(MY
- uint STDCALL mysql_errno(MYSQL *mysql)
- {
--  return mysql->net.client_last_errno;
-+  return mysql->net.last_errno;
- }
- const char * STDCALL mysql_error(MYSQL *mysql)
- {
--  return mysql->net.client_last_error;
-+  return mysql->net.last_error;
- }
-@@ -3162,7 +3162,7 @@ int STDCALL mysql_set_character_set(MYSQ
-                              ER(CR_CANT_READ_CHARSET), cs_name, cs_dir_name);
-   }
-   charsets_dir= save_csdir;
--  return mysql->net.client_last_errno;
-+  return mysql->net.last_errno;
- }
-
-==== sql/net_serv.cc ====
-2008-02-28 14:55:43-03:00, davi@mysql.com +12 -12
-  Rename client_last_error to last_error, client_last_errno to last_errno.
-
---- 1.117/sql/net_serv.cc      2007-12-20 12:24:04 -08:00
-+++ 1.118/sql/net_serv.cc      2008-02-28 09:55:43 -08:00
-@@ -127,10 +127,10 @@ my_bool my_net_init(NET *net, Vio* vio)
-   net->error=0; net->return_errno=0; net->return_status=0;
-   net->pkt_nr=net->compress_pkt_nr=0;
-   net->write_pos=net->read_pos = net->buff;
--  net->client_last_error[0]=0;
-+  net->last_error[0]=0;
-   net->compress=0; net->reading_or_writing=0;
-   net->where_b = net->remain_in_buf=0;
--  net->client_last_errno=0;
-+  net->last_errno=0;
- #ifdef USE_QUERY_CACHE
-   query_cache_init_query(net);
- #else
-@@ -177,7 +177,7 @@ my_bool net_realloc(NET *net, size_t len
-                          net->max_packet_size));
-     /* @todo: 1 and 2 codes are identical. */
-     net->error= 1;
--    net->client_last_errno= ER_NET_PACKET_TOO_LARGE;
-+    net->last_errno= ER_NET_PACKET_TOO_LARGE;
- #ifdef MYSQL_SERVER
-     my_error(ER_NET_PACKET_TOO_LARGE, MYF(0));
- #endif
-@@ -194,7 +194,7 @@ my_bool net_realloc(NET *net, size_t len
-   {
-     /* @todo: 1 and 2 codes are identical. */
-     net->error= 1;
--    net->client_last_errno= ER_OUT_OF_RESOURCES;
-+    net->last_errno= ER_OUT_OF_RESOURCES;
-     /* In the server the error is reported by MY_WME flag. */
-     DBUG_RETURN(1);
-   }
-@@ -579,7 +579,7 @@ net_real_write(NET *net,const uchar *pac
-                                 COMP_HEADER_SIZE, MYF(MY_WME))))
-     {
-       net->error= 2;
--      net->client_last_errno= ER_OUT_OF_RESOURCES;
-+      net->last_errno= ER_OUT_OF_RESOURCES;
-       /* In the server, the error is reported by MY_WME flag. */
-       net->reading_or_writing= 0;
-       DBUG_RETURN(1);
-@@ -632,7 +632,7 @@ net_real_write(NET *net,const uchar *pac
-                   my_progname,vio_errno(net->vio));
- #endif /* EXTRA_DEBUG */
-           net->error= 2;                     /* Close socket */
--            net->client_last_errno= ER_NET_PACKET_TOO_LARGE;
-+            net->last_errno= ER_NET_PACKET_TOO_LARGE;
- #ifdef MYSQL_SERVER
-             my_error(ER_NET_PACKET_TOO_LARGE, MYF(0));
- #endif
-@@ -662,10 +662,10 @@ net_real_write(NET *net,const uchar *pac
-       }
- #endif /* defined(THREAD_SAFE_CLIENT) && !defined(MYSQL_SERVER) */
-       net->error= 2;                          /* Close socket */
--      net->client_last_errno= (interrupted ? ER_NET_WRITE_INTERRUPTED :
-+      net->last_errno= (interrupted ? ER_NET_WRITE_INTERRUPTED :
-                                ER_NET_ERROR_ON_WRITE);
- #ifdef MYSQL_SERVER
--      my_error(net->client_last_errno, MYF(0));
-+      my_error(net->last_errno, MYF(0));
- #endif /* MYSQL_SERVER */
-       break;
-     }
-@@ -844,7 +844,7 @@ my_real_read(NET *net, size_t *complen)
- #endif /* EXTRA_DEBUG */
-               len= packet_error;
-               net->error= 2;                 /* Close socket */
--              net->client_last_errno= ER_NET_FCNTL_ERROR;
-+              net->last_errno= ER_NET_FCNTL_ERROR;
- #ifdef MYSQL_SERVER
-               my_error(ER_NET_FCNTL_ERROR, MYF(0));
- #endif
-@@ -876,11 +876,11 @@ my_real_read(NET *net, size_t *complen)
-                             remain, vio_errno(net->vio), (long) length));
-         len= packet_error;
-         net->error= 2;                                /* Close socket */
--          net->client_last_errno= (vio_was_interrupted(net->vio) ?
-+          net->last_errno= (vio_was_interrupted(net->vio) ?
-                                    ER_NET_READ_INTERRUPTED :
-                                    ER_NET_READ_ERROR);
- #ifdef MYSQL_SERVER
--          my_error(net->client_last_errno, MYF(0));
-+          my_error(net->last_errno, MYF(0));
- #endif
-         goto end;
-       }
-@@ -1100,7 +1100,7 @@ my_net_read(NET *net)
-                       &complen))
-       {
-       net->error= 2;                  /* caller will close socket */
--        net->client_last_errno= ER_NET_UNCOMPRESS_ERROR;
-+        net->last_errno= ER_NET_UNCOMPRESS_ERROR;
- #ifdef MYSQL_SERVER
-       my_error(ER_NET_UNCOMPRESS_ERROR, MYF(0));
- #endif
-
-==== sql/repl_failsafe.cc ====
-2008-02-28 14:55:43-03:00, davi@mysql.com +1 -1
-  Rename client_last_error to last_error, client_last_errno to last_errno.
-
---- 1.81.1.2/sql/repl_failsafe.cc      2008-02-19 04:57:57 -08:00
-+++ 1.81.1.3/sql/repl_failsafe.cc      2008-02-28 09:55:43 -08:00
-@@ -699,7 +699,7 @@ int connect_to_master(THD *thd, MYSQL* m
-   if (!mi->host || !*mi->host)                        /* empty host */
-   {
--    strmov(mysql->net.client_last_error, "Master is not configured");
-+    strmov(mysql->net.last_error, "Master is not configured");
-     DBUG_RETURN(1);
-   }
-   mysql_options(mysql, MYSQL_OPT_CONNECT_TIMEOUT, (char *) &slave_net_timeout);
diff --git a/mysql-bug-34945.patch b/mysql-bug-34945.patch
deleted file mode 100644 (file)
index 42628bc..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-From: Sergey&nbsp;PetruniaDate: March 3 2008 6:35pm
-Subject: bk commit into 5.0 tree (sergefp:1.2598) BUG#34945
-
-Below is the list of changes that have just been committed into a local
-5.0 repository of sergefp.  When sergefp does a push these changes
-will be propagated to the main repository and, within 24 hours after the
-push, to the public repository.
-For information on how to access the public repository
-see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
-
-ChangeSet@stripped, 2008-03-03 20:35:44+03:00, sergefp@stripped +3 -0
-  BUG#34945: "ref_or_null queries that are null_rejecting and have a null value crash mysql"
-  - Apply Eric Bergen's patch: in join_read_always_key(), move ha_index_init() call
-    to before the late NULLs filtering code.
-  - Backport function comments from 6.0.
-
-  mysql-test/r/null_key.result@stripped, 2008-03-03 20:35:38+03:00, sergefp@stripped +18 -0
-    BUG#34945: "ref_or_null queries that are null_rejecting and have a null value crash mysql"
-    - Testcase
-
-  mysql-test/t/null_key.test@stripped, 2008-03-03 20:35:38+03:00, sergefp@stripped +23 -0
-    BUG#34945: "ref_or_null queries that are null_rejecting and have a null value crash mysql"
-    - Testcase
-
-  sql/sql_select.cc@stripped, 2008-03-03 20:35:38+03:00, sergefp@stripped +26 -3
-    BUG#34945: "ref_or_null queries that are null_rejecting and have a null value crash mysql"
-    - Apply Eric Bergen's patch: in join_read_always_key(), move ha_index_init() call
-      to before the late NULLs filtering code.
-    - Backport function comments from 6.0
-
-diff -Nrup a/mysql-test/r/null_key.result b/mysql-test/r/null_key.result
---- a/mysql-test/r/null_key.result     2007-05-30 16:04:02 +04:00
-+++ b/mysql-test/r/null_key.result     2008-03-03 20:35:38 +03:00
-@@ -429,3 +429,21 @@ Handler_read_prev 0
- Handler_read_rnd      0
- Handler_read_rnd_next 5
- DROP TABLE t1,t2,t3,t4;
-+CREATE TABLE t1 (
-+a int(11) default NULL,
-+b int(11) default NULL,
-+KEY a (a,b)
-+);
-+INSERT INTO t1 VALUES (0,10),(0,11),(0,12);
-+CREATE TABLE t2 (
-+a int(11) default NULL,
-+b int(11) default NULL,
-+KEY a (a)
-+);
-+INSERT INTO t2 VALUES (3,NULL),(3,11),(3,12);
-+SELECT * FROM t2 inner join t1 WHERE ( t1.a = 0 OR t1.a IS NULL) AND t2.a = 3 AND t2.b = t1.b;
-+a     b       a       b
-+3     11      0       11
-+3     12      0       12
-+drop table t1, t2;
-+End of 5.0 tests
-diff -Nrup a/mysql-test/t/null_key.test b/mysql-test/t/null_key.test
---- a/mysql-test/t/null_key.test       2005-08-23 19:08:01 +04:00
-+++ b/mysql-test/t/null_key.test       2008-03-03 20:35:38 +03:00
-@@ -240,3 +240,26 @@ SHOW STATUS LIKE "handler_read%";
- DROP TABLE t1,t2,t3,t4;
- # End of 4.1 tests
-+
-+#
-+# BUG#34945 "ref_or_null queries that are null_rejecting and have a null value crash mysql"
-+# 
-+CREATE TABLE t1 (
-+  a int(11) default NULL,
-+  b int(11) default NULL,
-+  KEY a (a,b)
-+);
-+INSERT INTO t1 VALUES (0,10),(0,11),(0,12);
-+
-+CREATE TABLE t2 (
-+  a int(11) default NULL,
-+  b int(11) default NULL,
-+  KEY a (a)
-+);
-+INSERT INTO t2 VALUES (3,NULL),(3,11),(3,12);
-+
-+SELECT * FROM t2 inner join t1 WHERE ( t1.a = 0 OR t1.a IS NULL) AND t2.a = 3 AND t2.b = t1.b;
-+
-+drop table t1, t2;
-+-- echo End of 5.0 tests
-+
-diff -Nrup a/sql/sql_select.cc b/sql/sql_select.cc
---- a/sql/sql_select.cc        2008-02-29 14:02:47 +03:00
-+++ b/sql/sql_select.cc        2008-03-03 20:35:38 +03:00
-@@ -11491,6 +11491,24 @@
-   return table->status ? -1 : 0;
- }
-+/*
-+  ref access method implementation: "read_first" function
-+
-+  SYNOPSIS
-+    join_read_always_key()
-+      tab  JOIN_TAB of the accessed table
-+
-+  DESCRIPTION
-+    This is "read_fist" function for the "ref" access method.
-+
-+    The functon must leave the index initialized when it returns.
-+    ref_or_null access implementation depends on that.
-+
-+  RETURN
-+    0  - Ok
-+   -1  - Row not found
-+    1  - Error
-+*/
- static int
- join_read_always_key(JOIN_TAB *tab)
-@@ -11498,14 +11516,15 @@
-   int error;
-   TABLE *table= tab->table;
-+  /* Initialize the index first */
-+  if (!table->file->inited)
-+    table->file->ha_index_init(tab->ref.key, tab->sorted);
-+
-+  /* Perform "Late NULLs Filtering" (see internals manual for explanations) */
-   for (uint i= 0 ; i < tab->ref.key_parts ; i++)
-   {
-     if ((tab->ref.null_rejecting & 1 << i) && tab->ref.items[i]->is_null())
-         return -1;
--  } 
--  if (!table->file->inited)
--  {
--    table->file->ha_index_init(tab->ref.key, tab->sorted);
-   }
-   if (cp_buffer_from_ref(tab->join->thd, table, &tab->ref))
-     return -1;
diff --git a/mysql-ssl.patch b/mysql-ssl.patch
deleted file mode 100644 (file)
index 4404b93..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-From: msvenssonDate: February 7 2008 8:48am
-Subject: bk commit into 5.0 tree (msvensson:1.2573) BUG#33050
-
-Below is the list of changes that have just been committed into a local
-5.0 repository of msvensson.  When msvensson does a push these changes
-will be propagated to the main repository and, within 24 hours after the
-push, to the public repository.
-For information on how to access the public repository
-see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
-
-ChangeSet@stripped, 2008-02-07 08:48:28+01:00, msvensson@stripped +1 -0
-  Bug#33050 5.0.50 fails many SSL testcases
-
-  vio/viossl.c@stripped, 2008-02-07 08:48:27+01:00, msvensson@stripped +21 -14
-    Bug#33050 5.0.50 fails many SSL testcases
-
-diff -Nrup a/vio/viossl.c b/vio/viossl.c
---- a/vio/viossl.c     2007-08-28 11:34:42 +02:00
-+++ b/vio/viossl.c     2008-02-07 08:48:27 +01:00
-@@ -172,20 +172,15 @@ void vio_ssl_delete(Vio *vio)
-   vio_delete(vio);
- }
--int sslaccept(struct st_VioSSLFd *ptr, Vio *vio, long timeout)
--{
--  DBUG_ENTER("sslaccept");
--  DBUG_RETURN(sslconnect(ptr, vio, timeout));
--}
--
--int sslconnect(struct st_VioSSLFd *ptr, Vio *vio, long timeout)
-+static int ssl_do(struct st_VioSSLFd *ptr, Vio *vio, long timeout,
-+                  int (*connect_accept_func)(SSL*))
- {
-   SSL *ssl;
-   my_bool unused;
-   my_bool was_blocking;
--  DBUG_ENTER("sslconnect");
-+  DBUG_ENTER("ssl_do");
-   DBUG_PRINT("enter", ("ptr: 0x%lx, sd: %d  ctx: 0x%lx",
-                        (long) ptr, vio->sd, (long) ptr->ssl_context));
-@@ -204,13 +199,9 @@ int sslconnect(struct st_VioSSLFd *ptr, 
-   SSL_SESSION_set_timeout(SSL_get_session(ssl), timeout);
-   SSL_set_fd(ssl, vio->sd);
--  /*
--    SSL_do_handshake will select between SSL_connect
--    or SSL_accept depending on server or client side
--  */
--  if (SSL_do_handshake(ssl) < 1)
-+  if (connect_accept_func(ssl) < 1)
-   {
--    DBUG_PRINT("error", ("SSL_do_handshake failure"));
-+    DBUG_PRINT("error", ("SSL_connect/accept failure"));
-     report_errors(ssl);
-     SSL_free(ssl);
-     vio_blocking(vio, was_blocking, &unused);
-@@ -259,6 +250,20 @@ int sslconnect(struct st_VioSSLFd *ptr, 
- }
-+int sslaccept(struct st_VioSSLFd *ptr, Vio *vio, long timeout)
-+{
-+  DBUG_ENTER("sslaccept");
-+  DBUG_RETURN(ssl_do(ptr, vio, timeout, SSL_accept));
-+}
-+
-+
-+int sslconnect(struct st_VioSSLFd *ptr, Vio *vio, long timeout)
-+{
-+  DBUG_ENTER("sslconnect");
-+  DBUG_RETURN(ssl_do(ptr, vio, timeout, SSL_connect));
-+}
-+
-+
- int vio_ssl_blocking(Vio *vio __attribute__((unused)),
-                    my_bool set_blocking_mode,
-                    my_bool *old_mode)
-@@ -268,5 +273,7 @@ int vio_ssl_blocking(Vio *vio __attribut
-   /* Return error if we try to change to non_blocking mode */
-   return (set_blocking_mode ? 0 : 1);
- }
-+
-+
- #endif /* HAVE_OPENSSL */
This page took 0.134451 seconds and 4 git commands to generate.