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

Error 1105 (HY000): interface conversion: expression.Expression is *expression.Constant, not *expression.ScalarFunction #56745

Closed
apollodafoni opened this issue Oct 21, 2024 · 4 comments · Fixed by #56769
Assignees
Labels
affects-8.4 component/parser fuzz/comp Issues found by comp fuzz test. severity/moderate type/bug The issue is confirmed as a bug.

Comments

@apollodafoni
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table lrr( `COL1` varchar(10) NOT NULL,`COL2` char(10) NOT NULL,PRIMARY KEY (`COL1`(5),`COL2`) /*T![clustered_index] CLUSTERED */);
insert into lrr values("","a");
insert into lrr values("test","b");
prepare stmt from 'SELECT * FROM lrr t1 JOIN lrr t2 ON t1.col1 <=> t2.col1 WHERE t1.col1 <=> NULL AND t2.col1 = ?;';
set @a=NULL;
execute stmt using @a;

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

execute success

3. What did you see instead (Required)

ERROR 1105 (HY000): interface conversion: expression.Expression is *expression.Constant, not *expression.ScalarFunction

mysql execute success

4. What is your TiDB version? (Required)

Release Version: v8.4.0
Edition: Community
Git Commit Hash: 2205f33
Git Branch: HEAD
UTC Build Time: 2024-10-17 07:36:44
GoVersion: go1.23.2
Race Enabled: false
Check Table Before Drop: false
Store: tikv

@apollodafoni apollodafoni added the type/bug The issue is confirmed as a bug. label Oct 21, 2024
@apollodafoni
Copy link
Author

/severity moderate

@apollodafoni
Copy link
Author

/component parser

@apollodafoni
Copy link
Author

/assign @hawkingrei
/label affects-8.4

@apollodafoni
Copy link
Author

/label fuzz/comp

@ti-chi-bot ti-chi-bot bot added the fuzz/comp Issues found by comp fuzz test. label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-8.4 component/parser fuzz/comp Issues found by comp fuzz test. severity/moderate type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants