Possible a bug in TIBScript??

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
mighty
Posts: 18
Joined: Thu 01 Jun 2006 11:35

Possible a bug in TIBScript??

Post by mighty » Thu 25 Oct 2007 08:39

Hi,

I have a TIBScript object and its works fine. But if i use such as following code, raises an error! ".... TERM". This can be a SET TERM ^ ; or SET TERM ; ^

Is this a bug?

.
.
.
function TbaseDM.DBVarmiKontrolEt(DB: TIBCConnection; Klasor, Adi: String): Boolean;
var
MaxStm: Integer;
begin
Result := False;
if not FileExists(Klasor + '\ + Adi + '.FDB') then begin
if DB = msdb then
MaxStm := msDBCreateScript.Statements.Count
else
MaxStm := SirketDBCreateScript.Statements.Count + SirketDBSabitleri.Statements.Count;
msDlgBaslat('Veritabanı oluşturuluyor ... (' + Adi + ')', msdtIslem, MaxStm); // this functions begins a progressbar
try
DBOlustur(DB, Klasor, Adi);
Result := True;
finally
msDlgBitir; // this function ends progressbar begun above!
end;
end;
end;
.
.
.
procedure TbaseDM.ScriptAfterExecute(Sender: TObject; SQL: string);
begin
msDlgYenile; //increments progressbar each time a statement executed
end;

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 29 Oct 2007 09:29

Yes, this is a bug. TIBCScript executes SET TERM statement incorrectly if you use its Statements property before executing.
We have fixed this problem. The fix will be included in the next build of IBDAC.

Post Reply