-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
close #3920
- Loading branch information
1 parent
60a6b9e
commit 6806724
Showing
2 changed files
with
32 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
mysql> drop table if exists test.t1; | ||
mysql> create table test.t1(c1 int); | ||
mysql> insert into test.t1 values(9999), (-9999), (99), (-99); | ||
mysql> alter table test.t1 set tiflash replica 1; | ||
func> wait_table test t1 | ||
mysql> set @@tidb_isolation_read_engines='tiflash'; select cast(c1 as decimal(4, 1)) from test.t1 order by 1; | ||
cast(c1 as decimal(4, 1)) | ||
-999.9 | ||
-99.0 | ||
99.0 | ||
999.9 | ||
mysql> set @@tidb_isolation_read_engines='tiflash'; select cast(c1 as decimal(2, 2)) from test.t1 order by 1; | ||
cast(c1 as decimal(2, 2)) | ||
-0.99 | ||
-0.99 | ||
0.99 | ||
0.99 |