Description:
let $success= 1;
--echo $success
----> 1
So the expansion of $variables in "--echo ..." basically works.
--echo # <whatever> success: $success
----> # <whatever> success: $success
Why is there no expansion of the $variable ?
I assume this bug is not important for customers (--> S3).
But it harms the development of QA tests and their use in
bug analysis, because a workaround like
--disable_query_log
eval SELECT "# <whatever> success: $success" AS ''
--enable_query-log
is uncomfortable in coding and debugging situations.
(--> P3 and not P4)
My environment:
- Intel PC with Linux(SuSE 9.3)
- MySQL compiled from source
Version 5.1 last ChangeSet@1.2077, 2006-02-07
Version 4.1 last ChangeSet@1.2471, 2006-02-03
I guess MySQL 5.0 shows the same effect.
How to repeat:
Please use my attached testscript ml024.test
copy it to mysql-test/t
echo "Dummy" > r/ml024.result # Produce a dummy file with
# expected results
./mysql-test-run ml024
Suggested fix:
I think it is not necessary to fix this bug in MySQL 4.1,
because most test development etc. appears in MySQL 5.1 now.
So either MySQL 5.0 or at least 5.1 would be sufficient.
I would like to have the following behaviour
let $success= 1;
--echo # <whatever> success: $success
Response: "# <whatever> success: 1"
It would be also wonderful if
--echo # content of variable \$success: $success
would give Response: "# content of variable $success: 1"
This would be similar to the behaviour of "eval" when
there is a "\" just before "$".
Description: let $success= 1; --echo $success ----> 1 So the expansion of $variables in "--echo ..." basically works. --echo # <whatever> success: $success ----> # <whatever> success: $success Why is there no expansion of the $variable ? I assume this bug is not important for customers (--> S3). But it harms the development of QA tests and their use in bug analysis, because a workaround like --disable_query_log eval SELECT "# <whatever> success: $success" AS '' --enable_query-log is uncomfortable in coding and debugging situations. (--> P3 and not P4) My environment: - Intel PC with Linux(SuSE 9.3) - MySQL compiled from source Version 5.1 last ChangeSet@1.2077, 2006-02-07 Version 4.1 last ChangeSet@1.2471, 2006-02-03 I guess MySQL 5.0 shows the same effect. How to repeat: Please use my attached testscript ml024.test copy it to mysql-test/t echo "Dummy" > r/ml024.result # Produce a dummy file with # expected results ./mysql-test-run ml024 Suggested fix: I think it is not necessary to fix this bug in MySQL 4.1, because most test development etc. appears in MySQL 5.1 now. So either MySQL 5.0 or at least 5.1 would be sufficient. I would like to have the following behaviour let $success= 1; --echo # <whatever> success: $success Response: "# <whatever> success: 1" It would be also wonderful if --echo # content of variable \$success: $success would give Response: "# content of variable $success: 1" This would be similar to the behaviour of "eval" when there is a "\" just before "$".