summaryrefslogtreecommitdiff
path: root/mysql-test/include/show_events.inc
diff options
context:
space:
mode:
authorBjorn Munch <bjorn.munch@oracle.com>2010-10-25 14:07:28 +0200
committerBjorn Munch <bjorn.munch@oracle.com>2010-10-25 14:07:28 +0200
commit56354413f86be103ce6c30aed879562894fb28e6 (patch)
tree63f8b50666fa27797c5cf7279b8b06ca689e2afd /mysql-test/include/show_events.inc
parent512e00fec38854bd89f09abc25432b1ceb820a1d (diff)
downloadmariadb-git-56354413f86be103ce6c30aed879562894fb28e6.tar.gz
Revert simplified if() in mysql-test/include/show_events.inc
Diffstat (limited to 'mysql-test/include/show_events.inc')
-rw-r--r--mysql-test/include/show_events.inc4
1 files changed, 3 insertions, 1 deletions
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
}