# Please enable the query log, if you want to see more. --disable_query_log SELECT 'Test with script within outer while loop showing the bug' AS ""; let $outer= 2; # Number of outer loops while ($outer) { eval SELECT '$outer = outer loop variable after while' AS ""; --source t/ml60i.sub eval SELECT '$outer = outer loop variable before dec' AS ""; dec $outer; eval SELECT '$outer = outer loop variable after dec' AS ""; } SELECT 'Test with expanded script within outer while loop showing NO bug' AS ""; let $outer= 2; # Number of outer loops while ($outer) { eval SELECT '$outer = outer loop variable after while' AS ""; # --source t/ml60i.sub eval SELECT ' here is the sourced script' AS ""; eval SELECT '$outer = outer loop variable before dec' AS ""; dec $outer; eval SELECT '$outer = outer loop variable after dec' AS ""; } --enable_query_log