Subject | Re: [firebird-support] Re: constant un trigger/procedure |
---|---|
Author | Michael Ludwig |
Post date | 2010-05-11T21:48:56Z |
Michael Ludwig schrieb am 10.05.2010 um 21:54:25 (+0200):
efficient solution that I'd prefer to all the aforementioned ones:
(5) Preprocess your DDL script using a macro or template processor,
such as m4 or Template::Toolkit or whatever you like best to
replace YourNamedConstants with the actual values.
--
Michael Ludwig
> To sum it up, in addition to the non-global solution presented byIn the absence of which, of course, we can fall back on a primitive yet
> emb_blaster above, the following four global solutions were proposed:
>
> (1) generators which you never increment
> (2) stored procedures returning a constant
> (3) UDFs returning a constant (all by "unordained")
> (4) regular tables for lookup (by Alan McDonald)
>
> Still, I think constants as database objects would be very useful
efficient solution that I'd prefer to all the aforementioned ones:
(5) Preprocess your DDL script using a macro or template processor,
such as m4 or Template::Toolkit or whatever you like best to
replace YourNamedConstants with the actual values.
--
Michael Ludwig