Subject | RE: [ib-support] How can I set a generator value inside a procedure? |
---|---|
Author | Thomas Steinmaurer |
Post date | 2002-11-06T17:31:20Z |
> Does anybody knows how can I set a new generator value inside aYou can't. DDL (Data Definition Language) statements aren't allowed
> procedure or trigger?.
in stored procedures and triggers.
To reset a generator you could try something like that:
GEN_ID (MyGen, 0 - GEN_ID (MyGen,0) );
But, this is *NOT* safe in a multiuser environment!!!
Regards,
Thomas Steinmaurer
IB LogManager 2.1 - The Logging/Auditing Tool for InterBase and Firebird
http://www.iblogmanager.com