summaryrefslogtreecommitdiff
path: root/sql/sql_repl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_repl.cc')
-rw-r--r--sql/sql_repl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc
index 32b7c3be025..93545d10268 100644
--- a/sql/sql_repl.cc
+++ b/sql/sql_repl.cc
@@ -949,8 +949,8 @@ int show_binlog_events(THD* thd)
LOG_INFO linfo;
Log_event* ev;
- limit_start = thd->lex.select->offset_limit;
- limit_end = thd->lex.select->select_limit + limit_start;
+ limit_start = thd->lex.current_select->offset_limit;
+ limit_end = thd->lex.current_select->select_limit + limit_start;
name= search_file_name;
if (log_file_name)