Subject | Re: [firebird-support] Generators and Stored Procedures |
---|---|
Author | Dmitry Yemanov |
Post date | 2005-06-17T07:06:13Z |
<buppcpp@...> wrote:
a variable. Some day you'll want to UPDATE :tab_name SET blah-blah, so I'd
suggest you to change your thinking right now.
Dmitry
>SP
> I'm I correct in assuming that you can not call a generator from within a
> if you are using variables?Of course, not.
>
> ex.
> gen_value = GEN_ID ( :gen_name, :gen_increment);
> I think it has to do with variables.Nope. Generator name is a SQL identifier which can be never represented with
a variable. Some day you'll want to UPDATE :tab_name SET blah-blah, so I'd
suggest you to change your thinking right now.
Dmitry