Skip to content

bug: query result wrong: INSERT, DELETE, UNION ALL #1956

Open
@zhenglin-charlie-li

Description

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

Expected behavior

MySQL 5.7 Result

image

How To Reproduce

CREATE TABLE t0(c0 INT, c1 CHAR) ;
INSERT INTO t0(c1) VALUE (1);
DELETE  FROM t0;

SELECT * FROM t0 WHERE t0.c1 IS TRUE UNION ALL SELECT * FROM t0 WHERE (t0.c1 IS NOT TRUE);

Environment

Docker v1.0.4

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

  • Yes, I will!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions