You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
asfernandes
changed the title
Cursor name can duplicate parameter name in procedures and functions
Cursor name can duplicate parameter and variable names in procedures and functions
Jul 8, 2023
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:
The text was updated successfully, but these errors were encountered: