]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- up to 5.1.57
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 13 Jun 2011 07:01:31 +0000 (07:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mysql_dump_ignore_ct.patch -> 1.4

mysql_dump_ignore_ct.patch

index ae58526f5bf1a86e00c3c54c6c94b7938f9ddc68..794019dc139900e45ce3d3ae63f893d645571c3a 100644 (file)
@@ -8,7 +8,7 @@
 diff -ruN a/client/client_priv.h b/client/client_priv.h
 --- a/client/client_priv.h     2010-11-03 07:01:14.000000000 +0900
 +++ b/client/client_priv.h     2010-12-03 13:39:32.317046060 +0900
-@@ -58,6 +58,7 @@
+@@ -55,6 +55,7 @@
    OPT_MYSQL_LOCK_DIRECTORY,
    OPT_USE_THREADS,
    OPT_IMPORT_USE_THREADS,
@@ -16,8 +16,9 @@ diff -ruN a/client/client_priv.h b/client/client_priv.h
    OPT_MYSQL_NUMBER_OF_QUERY,
    OPT_IGNORE_TABLE,OPT_INSERT_IGNORE,OPT_SHOW_WARNINGS,OPT_DROP_DATABASE,
    OPT_TZ_UTC, OPT_CREATE_SLAP_SCHEMA,
---- mysql-5.5.9/client/mysqldump.c~    2011-03-10 20:05:49.000000000 +0200
-+++ mysql-5.5.9/client/mysqldump.c     2011-03-10 20:19:55.962339580 +0200
+diff -ruN a/client/mysqldump.c b/client/mysqldump.c
+--- a/client/mysqldump.c       2010-11-03 07:01:14.000000000 +0900
++++ b/client/mysqldump.c       2010-12-03 13:44:55.000069761 +0900
 @@ -101,7 +101,7 @@
                  opt_dump_triggers= 0, opt_routines=0, opt_tz_utc=1,
                  opt_slave_apply= 0, 
@@ -37,39 +38,25 @@ diff -ruN a/client/client_priv.h b/client/client_priv.h
    {"lines-terminated-by", OPT_LTB,
     "Lines in the output file are terminated by the given string.",
     &lines_terminated, &lines_terminated, 0, GET_STR,
-@@ -2297,21 +2297,35 @@
+@@ -2308,13 +2311,21 @@
+       /* Make an sql-file, if path was given iow. option -T was given */
        char buff[20+FN_REFLEN];
        MYSQL_FIELD *field;
++   
 +      my_bool old_ignore_errors=ignore_errors;
 +      //fprintf(stderr, "ignore create table %d\n", opt_ignore_show_create_table_error);
 +      if (opt_ignore_show_create_table_error)
 +         ignore_errors=1;
-+
-       my_snprintf(buff, sizeof(buff), "show create table %s", result_table);
  
-       if (opt_set_charset)  /* Was forced to false if server is too old. */
-       {
-         if (switch_character_set_results(mysql, "binary") != 0)
-+       {
-+         ignore_errors=old_ignore_errors;
-           DBUG_RETURN(0);
-+       }
-       }
+       my_snprintf(buff, sizeof(buff), "show create table %s", result_table);
  
-       if (mysql_query_with_error_report(mysql, &result, buff) != 0)
-+       {
-+         ignore_errors=old_ignore_errors;
+       if (switch_character_set_results(mysql, "binary") ||
+           mysql_query_with_error_report(mysql, &result, buff) ||
+           switch_character_set_results(mysql, default_charset))
++      {
++        ignore_errors=old_ignore_errors;
          DBUG_RETURN(0);
-+       }
-       if (opt_set_charset)  /* Was forced to false if server is too old. */
-       {
-         if (switch_character_set_results(mysql, default_charset) != 0)
-+       {
-+         ignore_errors=old_ignore_errors;
-           DBUG_RETURN(0);
-+       }
-       }
++      }
  
        if (path)
+       {
This page took 0.039995 seconds and 4 git commands to generate.