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

The type of year operation with the type of date is wrong #1964

Closed
lilinghai opened this issue May 23, 2021 · 1 comment · Fixed by #2406
Closed

The type of year operation with the type of date is wrong #1964

lilinghai opened this issue May 23, 2021 · 1 comment · Fixed by #2406
Assignees
Labels

Comments

@lilinghai
Copy link

create table t(a year,b date);
insert into t values(2005,"2004-10-10"),(2015,"2018-03-27");
alter table t set tiflash replica 1;
select * from t where a>b;

expect

+------+------------+
| a    | b          |
+------+------------+
| 2005 | 2004-10-10 |
+------+------------+

but got

+------+------------+
| a    | b          |
+------+------------+
| 2005 | 2004-10-10 |
| 2015 | 2018-03-27 |
+------+------------+
@mengxin9014
Copy link
Contributor

pingcap/tidb#26215

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

Successfully merging a pull request may close this issue.

3 participants