Skip to content

Commit

Permalink
add the test of comparison between type year and type date (#2406) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-srebot authored Jul 23, 2021
1 parent 7388e5a commit 0e93f79
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/fullstack-test/expr/compare_year_with_date.test
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0e93f79

Please sign in to comment.