diff options
author | Bjorn Munch <bjorn.munch@oracle.com> | 2010-11-26 10:57:01 +0100 |
---|---|---|
committer | Bjorn Munch <bjorn.munch@oracle.com> | 2010-11-26 10:57:01 +0100 |
commit | ca2ea5541e980fb36eaa98047f5bbce80fc1ab7a (patch) | |
tree | 480b8b293100c58a415bdba7b0f48d490d086b89 /mysql-test/t/mysqltest.test | |
parent | b2d1b1f897efe70e92238edd9ddde6fc54cae167 (diff) | |
download | mariadb-git-ca2ea5541e980fb36eaa98047f5bbce80fc1ab7a.tar.gz |
Bug #58412 mysqltest: allow quoting of strings in let and in if comparison
Stripping quotes in let was a bad idea, will not fix
Added code to strip quotes from rhs in comparisons
Diffstat (limited to 'mysql-test/t/mysqltest.test')
-rw-r--r-- | mysql-test/t/mysqltest.test | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/mysql-test/t/mysqltest.test b/mysql-test/t/mysqltest.test index cde517be03a..186b0e0fbfa 100644 --- a/mysql-test/t/mysqltest.test +++ b/mysql-test/t/mysqltest.test @@ -1276,12 +1276,24 @@ if ($ifvar != goodbye) { echo hello != goodbye; } - +let $ifvar= 'quoted'; +if ($ifvar == ''quoted'') +{ + echo 'quoted' == ''quoted''; +} let $ifvar= two words; if ($ifvar == two words) { echo two words; } +if ($ifvar == 'two words') +{ + echo 'two words'; +} +if ($ifvar == "two words") +{ + echo "two words"; +} if ($ifvar == `SELECT 'two words'`) { echo two words are two words; |