summaryrefslogtreecommitdiff
path: root/mysql-test/t/cast.test
diff options
context:
space:
mode:
authorhf@deer.(none) <>2005-03-07 20:53:51 +0400
committerhf@deer.(none) <>2005-03-07 20:53:51 +0400
commitfbbb58c6aeaab9ac5983f5fc57204e0e74b5b954 (patch)
tree93b78a95b8ba743ba7f9069cfb83219382d5cfc3 /mysql-test/t/cast.test
parente5a2d037437cc92966b2d593bc7a9bef1d3c7e94 (diff)
downloadmariadb-git-fbbb58c6aeaab9ac5983f5fc57204e0e74b5b954.tar.gz
Fix for bug #8935 CAST(time AS DECIMAL) crashes
Diffstat (limited to 'mysql-test/t/cast.test')
-rw-r--r--mysql-test/t/cast.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/t/cast.test b/mysql-test/t/cast.test
index 5866431e687..94d9590dd5f 100644
--- a/mysql-test/t/cast.test
+++ b/mysql-test/t/cast.test
@@ -126,3 +126,8 @@ select cast(cast('1.2' as decimal(3,2)) as signed);
set @v1=1e18;
select cast(@v1 as decimal(22, 2));
select cast(-1e18 as decimal(22,2));
+
+create table t1(s1 time);
+insert into t1 values ('11:11:11');
+select cast(s1 as decimal(7,2)) from t1;
+drop table t1;