summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <gshchepa/uchum@gleb.loc>2007-09-05 11:43:40 +0500
committerunknown <gshchepa/uchum@gleb.loc>2007-09-05 11:43:40 +0500
commita3dc9569e983db92ca1ace1f3fe66428cd8098e2 (patch)
treef0a3a779c2c059e53187301ccf5cd469d06fc389 /client
parent329534a86d27158a28da6166f81fec4e4026387e (diff)
parent6a71b067b03c43d90012718cce2b040892c7ac86 (diff)
downloadmariadb-git-a3dc9569e983db92ca1ace1f3fe66428cd8098e2.tar.gz
Merge gleb.loc:/home/uchum/work/bk/5.1-opt-29938
into gleb.loc:/home/uchum/work/bk/5.1-opt client/mysqldump.c: Auto merged
Diffstat (limited to 'client')
-rw-r--r--client/mysqldump.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c
index c05272c2d17..582e9e3b3b9 100644
--- a/client/mysqldump.c
+++ b/client/mysqldump.c
@@ -3039,6 +3039,18 @@ static void dump_table(char *table, char *db)
DBUG_VOID_RETURN;
}
+ /*
+ Check --skip-events flag: it is not enough to skip creation of events
+ discarding SHOW CREATE EVENT statements generation. The myslq.event
+ table data should be skipped too.
+ */
+ if (!opt_events && !my_strcasecmp(&my_charset_latin1, db, "mysql") &&
+ !my_strcasecmp(&my_charset_latin1, table, "event"))
+ {
+ verbose_msg("-- Skipping data table mysql.event, --skip-events was used\n");
+ DBUG_VOID_RETURN;
+ }
+
result_table= quote_name(table,table_buff, 1);
opt_quoted_table= quote_name(table, table_buff2, 0);