SET TERM fails on (re)setting terminator

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
upscene
Posts: 306
Joined: Thu 19 Oct 2006 08:13

SET TERM fails on (re)setting terminator

Post by upscene » Mon 08 Feb 2010 12:17

Hi,

Here's an example script:

Code: Select all

SET TERM ^^ ;
CREATE PROCEDURE P_DONOTHING2 AS
BEGIN
   SUSPEND;
END ^^
SET TERM ; ^^
SET TERM ^^ ;
ALTER PROCEDURE P_DONOTHING2 AS
begin
   /* code */
end ^^
SET TERM ; ^^
When tracing the BeforeExecute event of TIBCScript, I can see the parameter "Omit" being TRUE for the first SET TERM, then comes the CREATE PROCEDURE, Omit is FALSE, on the second SET TERM, however, Omit is FALSE.

Setting the terminator again, or resetting it should be possible. Of course, the new terminator has to be used, just like the script above.

There seems to be a bug here.

With regards,

Martijn Tonies
Upscene Productions

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

Post by Plash » Tue 09 Feb 2010 13:26

We have fixed this problem. The fix will be included in the next build of IBDAC.

Post Reply