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

Cast string as unsigned may produce wrong result #1761

Closed
leiysky opened this issue Apr 12, 2021 · 0 comments · Fixed by #1762
Closed

Cast string as unsigned may produce wrong result #1761

leiysky opened this issue Apr 12, 2021 · 0 comments · Fixed by #1762
Labels
priority/release-blocker This issue blocks a release. Please solve it ASAP. severity/critical type/bug The issue is confirmed as a bug.
Milestone

Comments

@leiysky
Copy link
Contributor

leiysky commented Apr 12, 2021

Minimal reproduce:

create table t (a char(20));
insert into t values('-123');
alter table t set tiflash replica 1;

set session tidb_isolation_read_engines='tiflash';
select * from t where cast(a as unsigned);
# Expect return -123 but get empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/release-blocker This issue blocks a release. Please solve it ASAP. severity/critical type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants