Subject | RE: [ib-support] Problem with stored procedure FB1.0.2 |
---|---|
Author | Dmitry Yemanov |
Post date | 2003-04-14T12:33:26Z |
Helen,
(set them to NULL). It doesn't and shoudn't unexpectedly (without any
explicit assignment operator or SELECT ... INTO clause) change user
variables in the body of a procedure.
If a plain SELECT ... INTO returns nothing, then nothing is assigned to a
variable. And it's absolutely logical. Assigning any other value or NULL is
wrong. The only correct alternative way I can think about is throwing an
exception (like Oracle does).
Dmitry
> If you are seeing this in Firebird (where it is supposed toThe engine initializes local variables only at the beginning of a SP/trigger
> have been fixed
> so that the engine re-initialises the variables) then we
> certainly would appreciate a test case.
(set them to NULL). It doesn't and shoudn't unexpectedly (without any
explicit assignment operator or SELECT ... INTO clause) change user
variables in the body of a procedure.
If a plain SELECT ... INTO returns nothing, then nothing is assigned to a
variable. And it's absolutely logical. Assigning any other value or NULL is
wrong. The only correct alternative way I can think about is throwing an
exception (like Oracle does).
Dmitry