Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect query result #60094

Open
sayJason opened this issue Mar 14, 2025 · 0 comments
Open

Incorrect query result #60094

sayJason opened this issue Mar 14, 2025 · 0 comments
Labels
type/bug The issue is confirmed as a bug.

Comments

@sayJason
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

CREATE TABLE t1 (c1 VARCHAR(50));
INSERT INTO t1 (c1) VALUES ('2001-01-32');
SELECT c1 as r1 FROM t1 WHERE !((MAKEDATE(2001,31) IN (SELECT c1 FROM t1))); -- actual: {}, expected: {2001-01-32}

2. What did you expect to see? (Required)

{2001-01-32} should be returned.

3. What did you see instead (Required)

{} was returned.

4. What is your TiDB version? (Required)

Release Version: v8.5.1
Edition: Community
Git Commit Hash: fea86c8
Git Branch: HEAD
UTC Build Time: 2025-01-16 07:38:34
GoVersion: go1.23.4
Race Enabled: false
Check Table Before Drop: false
Store: tikv

@sayJason sayJason added the type/bug The issue is confirmed as a bug. label Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

1 participant