Skip to content

[Bug] Where clause is not reanalyzed after rewrite #11722

@yangzhg

Description

@yangzhg

Search before asking

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

Version

master

What's Wrong?

Where clause is not reanalyzed after rewrite

MySQL [test]> UPDATE test_update_bigint_tb  SET v1=-1, v2=-1, v3=-1, v4=-1 WHERE k1 is not null or k1 is null;
ERROR 1105 (HY000): errCode = 2, detailMessage = Where clause is not a valid statement return bool

What You Expected?

update success

How to Reproduce?

update table set v = 1 WHERE k1 is not null or k1 is null;

Anything Else?

this bug was intruduced by #11414

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions