Subject | Re: [Firebird-Architect] Named arguments for SP |
---|---|
Author | Adriano dos Santos Fernandes |
Post date | 2005-01-15T18:09:57Z |
Nando Dessena wrote:
create procedure sp2 (x varchar(5))
as
begin
end;
create procedure sp21
as
declare variable x varchar(5);
begin
x = 'false';
execute procedure sp2 (x = 'false');
end;
Adriano
> Adriano,What will be the value of 'x' in sp2, 'true' or 'false'?
>
>
>>>execute procedure sp (x = 1, y = 1)
>>>
>
> A> This syntax is incompatible with a future boolean
> A> datatype/expressions when used inside SPs.
>
> I don't think so. Precedence and scoping rules should avoid
> ambiguities.
>
create procedure sp2 (x varchar(5))
as
begin
end;
create procedure sp21
as
declare variable x varchar(5);
begin
x = 'false';
execute procedure sp2 (x = 'false');
end;
Adriano