Subject Re: [ib-support] inicial value of variable
Author Lele Gaifax
>>>>> Helen Borrie l'ha dit:

Helen> Variables are not automatically initialized: they are NULL
Helen> until they receive a value.

Yup, so they *are* initialized, I mean, they are in a known state at
procedure start, don't they?

I keep the habit of doing

myVar = NULL;
SELECT ... FROM ... INTO :myVar;
IF (myVar IS NULL) THEN ...

because I had the same doubt stated by Nando ...

ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
email: lele@... | -- Fortunato Depero, 1929.