Browse Source

* Patch from Sergey Stepnoy to fix memleak, fix setting term

git-svn-id: trunk@33265 -
michael 9 years ago
parent
commit
73792db52b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      packages/fcl-db/src/base/sqlscript.pp

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

@@ -481,7 +481,10 @@ begin
         InternalCommit(true)
       else if FUseSetTerm
         and (Directive = 'SET TERM' {Firebird/Interbase only}) then
-        FTerminator:=S
+          begin
+          FTerminator:=S;
+          RecalcSeps;
+          end
       else
         InternalDirective (Directive,S,FAborted)
       end
@@ -642,6 +645,7 @@ procedure TCustomSQLScript.DefaultDirectives;
 begin
   With FDirectives do
     begin
+  FreeAndNil(FDollarStrings);
     // Insertion order matters as testing for directives will be done with StartsWith
     if FUseSetTerm then
       Add('SET TERM');