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:
@ -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;
|
||||
|
Reference in New Issue
Block a user