Browse Source

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

git-svn-id: trunk@48900 -
michael 4 years ago
parent
commit
63c340cb27
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/fcl-db/src/base/sqlscript.pp

+ 2 - 1
packages/fcl-db/src/base/sqlscript.pp

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