Skip to content

bug: case when not woking as expected #9320

@wubx

Description

@wubx

Search before asking

  • I had searched in the issues and found no similar issues.

Version

all

What's Wrong?


create table tb01(d int);
insert into tb01 values(0),(2),(3);
select * from tb01;

select case when d > 0 then 
10/d 
else 
100
end 
from tb01;

1006: / by zero

How to Reproduce?

above

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

Labels

C-bugCategory: something isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions