From 4aa59d683e7befb590dfabde81d399b25d3752a6 Mon Sep 17 00:00:00 2001 From: Bjorn Munch Date: Mon, 25 Oct 2010 14:07:28 +0200 Subject: [PATCH] Revert simplified if() in mysql-test/include/show_events.inc --- mysql-test/include/show_events.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mysql-test/include/show_events.inc b/mysql-test/include/show_events.inc index df17534eb82..ff5a7105c24 100644 --- a/mysql-test/include/show_events.inc +++ b/mysql-test/include/show_events.inc @@ -25,7 +25,9 @@ if ($binlog_file) --let $_statement= $_statement from $binlog_start -if ($binlog_limit) +# Cannot use if($binlog_limit) since the variable may begin with a 0 + +if (`SELECT '$binlog_limit' <> ''`) { --let $_statement= $_statement limit $binlog_limit }