* Fix bug #38330: reset line number on execute (1-based)

git-svn-id: trunk@48900 -
This commit is contained in:
michael 2021-03-07 19:02:54 +00:00
parent cc9549dd85
commit 63c340cb27

View File

@ -284,6 +284,7 @@ begin
FUseDollarString:=AValue; FUseDollarString:=AValue;
RecalcSeps; RecalcSeps;
end; end;
function TCustomSQLScript.GetLine: Integer; function TCustomSQLScript.GetLine: Integer;
begin begin
Result:=FLine - 1; Result:=FLine - 1;
@ -507,7 +508,7 @@ begin
FIsSkipping:=False; FIsSkipping:=False;
FSkipStackIndex:=0; FSkipStackIndex:=0;
Faborted:=False; Faborted:=False;
FLine:=0; FLine:=1;
DefaultDirectives; DefaultDirectives;
Repeat Repeat
NextStatement(); NextStatement();