1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Bug #55582 mtr root detection (and if-expression execution) broken

Follow-up patch: added test cases for -0 and while
This commit is contained in:
Bjorn Munch
2010-08-04 10:52:45 +02:00
parent 1ba9d79b7b
commit 0792d2b069
2 changed files with 12 additions and 0 deletions

View File

@@ -395,6 +395,7 @@ Counter is greater than 0, (counter=10)
Counter is not 0, (counter=0)
Counter is true, (counter=alpha)
Beta is true
while with string, only once
1
Testing while with not
mysqltest: In included file "MYSQLTEST_VARDIR/tmp/mysqltest_while.inc": At line 64: Nesting too deeply

View File

@@ -1119,10 +1119,21 @@ if ($counter)
{
echo oops, space is true;
}
let $counter=-0;
if ($counter)
{
echo oops, -0 is true;
}
if (beta)
{
echo Beta is true;
}
let $counter=gamma;
while ($counter)
{
echo while with string, only once;
let $counter=000;
}
# ----------------------------------------------------------------------------
# Test while, { and }