summaryrefslogtreecommitdiff
path: root/sql/lex.h
diff options
context:
space:
mode:
authorLuis Soares <luis.soares@sun.com>2009-09-29 00:04:20 +0100
committerLuis Soares <luis.soares@sun.com>2009-09-29 00:04:20 +0100
commitd28ef002d7c9bd8febf8965134cac802222ba279 (patch)
tree4b646a2cce19304d674e4300531ef4dd4c59cf37 /sql/lex.h
parentacd1d7c2f5330184bc2f65f4137ed2ebcd359ac9 (diff)
downloadmariadb-git-d28ef002d7c9bd8febf8965134cac802222ba279.tar.gz
BUG#28777, WL#4293: SHOW BINLOG EVENTS does not work on relay log
files NOTE: this is the backport to next-mr. SHOW BINLOG EVENTS does not work with relay log files. If issuing "SHOW BINLOG EVENTS IN 'relay-log.000001'" in a non-empty relay log file (relay-log.000001), mysql reports empty set. This patch addresses this issue by extending the SHOW command with RELAYLOG. Events in relay log files can now be inspected by issuing SHOW RELAYLOG EVENTS [IN 'log_name'] [FROM pos] [LIMIT [offset,] row_count].
Diffstat (limited to 'sql/lex.h')
-rw-r--r--sql/lex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/lex.h b/sql/lex.h
index b199a79350b..dd37d837045 100644
--- a/sql/lex.h
+++ b/sql/lex.h
@@ -429,6 +429,7 @@ static SYMBOL symbols[] = {
{ "REDUNDANT", SYM(REDUNDANT_SYM)},
{ "REFERENCES", SYM(REFERENCES)},
{ "REGEXP", SYM(REGEXP)},
+ { "RELAYLOG", SYM(RELAYLOG_SYM)},
{ "RELAY_LOG_FILE", SYM(RELAY_LOG_FILE_SYM)},
{ "RELAY_LOG_POS", SYM(RELAY_LOG_POS_SYM)},
{ "RELAY_THREAD", SYM(RELAY_THREAD)},