-
-
Notifications
You must be signed in to change notification settings - Fork 256
Closed
Description
We do not allow duplicate names of cursor, variable and parameter names in execute block
.
But we're allowing cursor names to use same names as procedure/function parameters and variables:
create function f1 (x integer) returns integer
as
declare x cursor for (select 1 n from rdb$database);
declare y integer;
declare y cursor for (select 1 n from rdb$database);
begin
end!
create procedure p1 (x integer)
as
declare x cursor for (select 1 n from rdb$database);
declare y integer;
declare y cursor for (select 1 n from rdb$database);
begin
end!