In a very specify case, Toad for MySQL will prompt for variables when it should not, and then return an incorrect result. The following test will reproduce the bug Execute the following SQL SELECT 'Test \' to show incorrect variable prompt?'; Expected result: Test ' to show incorrect variable prompt? Actual result: Prompt for a variable named @f0, which should not be shown at all, and then regardless of whether you click OK or Cancel, and regardless of whether or not you enter a value for the variable the following result (the question mark replaced with "@f0") Test ' to show incorrect variable prompt@f0 Note that if you use two quotes instead of \' to escape the quote then Toad works correctly, so Execute the following SQL SELECT 'Test '' to show incorrect variable prompt?'; Gives the expected result: Test ' to show incorrect variable prompt?
↧