Skip to content

bug: query result wrong: CASE WHEN THEN ELSE #1950

@zhenglin-charlie-li

Description

@zhenglin-charlie-li

Have you read the Contributing Guidelines on issues?

Please confirm if bug report does NOT exists already ?

  • I confirm there is no existing issue for this

Describe the problem

The query result does not meet expectation

StoneDB V1.0.4 Result

image

MySQL 5.7 Result

image

Expected behavior

No response

How To Reproduce

CREATE TABLE t0(c0 INT NULL);
INSERT INTO t0(c0) VALUES (DEFAULT);
SELECT * FROM t0 WHERE (CASE (t0.c0 IN (t0.c0)) WHEN TRUE THEN 'TRUE' ELSE 'FALSE' END );

Environment

Docker v1.0.4

Are you interested in submitting a PR to solve the problem?

  • Yes, I will!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions