on ‎2022 Feb 06 5:24 PM
Is this a bug in SQL Anywhere 17.0.9
create or replace database variable testvar bit default 0;
create or replace function testvar()
returns bit
begin
if testvar = 1 then
return(1);
else
return(0);
end if;
end;
set testvar = 1;
select testvar;
select testvar();--why this delivers 0?
Request clarification before answering.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.