Subject | Re: [firebird-support] Initializing Generators in Stored Procs |
---|---|
Author | Martijn Tonies |
Post date | 2003-09-18T13:17:46Z |
Hi Ivan,
SET TRANSACTION same here, nevertheless, it cannot be used.
SET STATISTICS - updates the stats for a schema (index) object, so yes -
DDL.
SET GENERATOR - updates the value of a schema (generator) object, so yes -
DDL.
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird & MS SQL Server.
Upscene Productions
http://www.upscene.com
> > From: "Martijn Tonies"Because it is defined as such :-)
> > > CREATE PROCEDURE INITIALIZE_TRANSTYPES
> > > AS
> > > BEGIN
> > > SET GENERATOR "GEN_TXNTYPE" TO 0;
> > > END
> ...
> > DDL isn't allowed in Firebird.
>
> Why do you think SET GENERATOR is DDL command ?
> (Neither of SET GENERATOR, SET NAMES, SET STATISTICS, SET TRANSACTIONSET NAMES has nothing to do with changing a schema object.
> is DDL, imho)
SET TRANSACTION same here, nevertheless, it cannot be used.
SET STATISTICS - updates the stats for a schema (index) object, so yes -
DDL.
SET GENERATOR - updates the value of a schema (generator) object, so yes -
DDL.
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird & MS SQL Server.
Upscene Productions
http://www.upscene.com