1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

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
This commit is contained in:
Bjorn Munch
2010-11-26 10:57:01 +01:00
parent b2d1b1f897
commit ca2ea5541e
4 changed files with 34 additions and 8 deletions

View File

@ -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;