diff options
author | Bjorn Munch <bjorn.bunch@oracle.com> | 2010-08-04 10:52:45 +0200 |
---|---|---|
committer | Bjorn Munch <bjorn.bunch@oracle.com> | 2010-08-04 10:52:45 +0200 |
commit | 2d2da6e79359668111b24734be0f9011f289a281 (patch) | |
tree | 79a0b24cbe28675ecc9ca8fe4a52ea503338a972 /mysql-test/t/mysqltest.test | |
parent | 5e92df6e0ee01cdea7865d3f0b6d02f840bf0402 (diff) | |
download | mariadb-git-2d2da6e79359668111b24734be0f9011f289a281.tar.gz |
Bug #55582 mtr root detection (and if-expression execution) broken
Follow-up patch: added test cases for -0 and while
Diffstat (limited to 'mysql-test/t/mysqltest.test')
-rw-r--r-- | mysql-test/t/mysqltest.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/mysqltest.test b/mysql-test/t/mysqltest.test index b88cde8c8f0..031c51a0720 100644 --- a/mysql-test/t/mysqltest.test +++ b/mysql-test/t/mysqltest.test @@ -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 } |