From 0e93f7998e20ee1193ebcee064b12d168898f228 Mon Sep 17 00:00:00 2001 From: ti-srebot <66930949+ti-srebot@users.noreply.github.com> Date: Fri, 23 Jul 2021 16:12:20 +0800 Subject: [PATCH] add the test of comparison between type year and type date (#2406) (#2484) --- .../expr/compare_year_with_date.test | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/fullstack-test/expr/compare_year_with_date.test diff --git a/tests/fullstack-test/expr/compare_year_with_date.test b/tests/fullstack-test/expr/compare_year_with_date.test new file mode 100644 index 00000000000..d001f45e5c8 --- /dev/null +++ b/tests/fullstack-test/expr/compare_year_with_date.test @@ -0,0 +1,15 @@ +mysql> drop table if exists test.t +mysql> create table if not exists test.t(a year, b date) +mysql> insert into test.t values(2005, '2004-10-10'),(2015, '2018-03-27') +mysql> alter table test.t set tiflash replica 1 + +func> wait_table test t + +mysql> set @@tidb_isolation_read_engines='tiflash'; select * from test.t where a > b ++------+------------+ +| a | b | ++------+------------+ +| 2005 | 2004-10-10 | ++------+------------+ + +mysql> drop table if exists test.t