Last row doesn't run when second last row has an error

[expired user #7959]'s profile image [expired user #7959] posted 10 years ago in Running SQL scripts Permalink

When "Stop on errors in batch mode" is not selected and if second last row has error HeidiSQL will stop on error. Last row will not be executed at all. If I add a comment after last row, it runs fine.

This doesn't run SELECT 2;
SELECT 1;
fsddfsg;
SELECT 2;

This runs fine:
SELECT 1;
fsddfsg;
SELECT 2;
-- afsaaf







Please login to leave a reply, or register at first.