diff options
Diffstat (limited to 'mysql-test/main/temporal_scale_4283.test')
-rw-r--r-- | mysql-test/main/temporal_scale_4283.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/main/temporal_scale_4283.test b/mysql-test/main/temporal_scale_4283.test new file mode 100644 index 00000000..d79ca7ca --- /dev/null +++ b/mysql-test/main/temporal_scale_4283.test @@ -0,0 +1,13 @@ +# +# MDEV-4283 Assertion `scale <= precision' fails in strings/decimal.c +# +create table t1 (a int); +insert into t1 values (4),(8); +select distinct 100 mod timestampadd( week, a, '2002-05-20' ) from t1; +drop table t1; + +create table t1 (i int); +insert into t1 values (2),(4); +select distinct convert_tz( '2001-03-21', 'utc', 'met' ) mod i from t1; +drop table t1; + |