mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 17:14:30 +02: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:
parent
5e92df6e0e
commit
2d2da6e793
2 changed files with 12 additions and 0 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue