summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_time_hires.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/t/func_time_hires.test')
-rw-r--r--mysql-test/t/func_time_hires.test2
1 files changed, 2 insertions, 0 deletions
diff --git a/mysql-test/t/func_time_hires.test b/mysql-test/t/func_time_hires.test
index b9cb6a92e9e..9d2dbfbaeb5 100644
--- a/mysql-test/t/func_time_hires.test
+++ b/mysql-test/t/func_time_hires.test
@@ -65,6 +65,8 @@ create table t1 select CAST(@a AS DATETIME) as dauto,
show create table t1;
--query_vertical select * from t1
drop table t1;
+explain extended select cast(cast(@a as datetime(4)) as time(0));
+select cast(cast(@a as time(2)) as time(6));
--error ER_TOO_BIG_PRECISION
select CAST(@a AS DATETIME(7));