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

IN(NULL) causes "cannot convert <nil>(type <nil>) to string" #18839

Closed
kolbe opened this issue Jul 28, 2020 · 1 comment
Closed

IN(NULL) causes "cannot convert <nil>(type <nil>) to string" #18839

kolbe opened this issue Jul 28, 2020 · 1 comment
Labels
Milestone

Comments

@kolbe
Copy link
Contributor

kolbe commented Jul 28, 2020

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t ( id bigint(10) primary key, f varchar(191) default null, unique key `idx_f` (`f`));
select * from t where f in (null);

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

This query should return no results, but it should complete without any error.

3. What did you see instead (Required)

ERROR 1105 (HY000): cannot convert <nil>(type <nil>) to string

4. Affected version (Required)

All 4.0 releases are affected.

TiDB v3.0.16 is not affected.

5. Root Cause Analysis

@kolbe kolbe added the type/bug The issue is confirmed as a bug. label Jul 28, 2020
@glorv
Copy link
Contributor

glorv commented Jul 29, 2020

/label component/expression

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants