Hi Arcady,
Which build / SP of 16.0 are you trying? I cannot seem to reproduce this situation from just your description (16.0.2052, SP 29):
-- nestedif.sql
create function foo()
returns integer
begin
declare x integer;
declare y integer;
declare z integer;
if x = 1 then
if y = 1 then
set z = 0;
end if;
end if;
return z;
end;
dbinit db1.db
dbinit db2.db
dbisql -c "uid=dba;pwd=sql;dbf=db1.db" nestedif.sql
dbisql -c "uid=dba;pwd=sql;dbf=db2.db" nestedif.sql
scjview
Can you perhaps elaborate on what you're trying exactly and what you're seeing?
Regards,
Jeff Albion
SAP Active Global Support