Subject | Re: [IBO] Problem with script |
---|---|
Author | Lucas Franzen |
Post date | 2004-09-24T09:19:50Z |
Riho-Rene
Riho-Rene Ellermaa wrote:
Use several scripts for this and disconnect/reconnect between executing
them.
I'd never use
commit;
within a script since if sth. fails you don't know what was already
committed and what wasn't.
Luc.
Riho-Rene Ellermaa wrote:
> I use IBO4.2 Ib, BCB5[snip]
>
> I run TIB_Script:
>
> SET AUTODDL ON;
> ALTER TABLE CORRESP add COL Varchar(35) NOT NULL;
> commit;
> update corresp set col='';
> update corresp set cref='' where cref is null;
> In Firebird servers this script works perfectly.I never got this working within IBO since the metadata is cached.
> When using IB 6.0, I get error in last row (ADD CONSTRAINT):
> ISC ERROR: 335544349
> Attempt to store duplicate value (...) in unique index
> "RDB$PRIMARY43"
> Null segment of UNIQUE KEY
> Strange thing is that when I run this script in IBAdmin or IB Manager,
> then I don't get this error - the script runs OK.
>
> Can anyone give me a solution to get the script working inside IBO?
Use several scripts for this and disconnect/reconnect between executing
them.
I'd never use
commit;
within a script since if sth. fails you don't know what was already
committed and what wasn't.
Luc.