Skip to content

unary not with json argument is not compatible with MySQL #40683

@YangKeao

Description

@YangKeao
CREATE TABLE t0(c0 JSON );
INSERT INTO t0(c0) VALUES ('1895038629'), ('[]');
SELECT * FROM t0 WHERE NOT t0.c0;

In MySQL, it gives nothing. In TiDB, it gives '[]'.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions