summaryrefslogtreecommitdiff
path: root/mysql-test/t
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2011-11-03 12:59:48 +0100
committerSergei Golubchik <sergii@pisem.net>2011-11-03 12:59:48 +0100
commitfb43946dad1eab6a8e43b02eaa5d681c1ecc8474 (patch)
treea256c643bdab74972070678924108c92698b2f50 /mysql-test/t
parent178c6eced6255ceb0c4d37f646d3f9f6baab4b33 (diff)
downloadmariadb-git-fb43946dad1eab6a8e43b02eaa5d681c1ecc8474.tar.gz
cast.test: use exact double, to be independent from compiler optimizations
Diffstat (limited to 'mysql-test/t')
-rw-r--r--mysql-test/t/cast.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/t/cast.test b/mysql-test/t/cast.test
index eeb87190ec1..42693a2f01e 100644
--- a/mysql-test/t/cast.test
+++ b/mysql-test/t/cast.test
@@ -37,7 +37,7 @@ select cast("2011-02-03 10:11:12.123456" as datetime(0));
select cast("2011-02-03 10:11:12.123456" as datetime(5));
select cast("2011-02-03 10:11:12.123456" as datetime(6));
select cast("2011-02-03 10:11:12" as datetime(6));
-select cast(cast(20010203101112.1 as double) as datetime(1));
+select cast(cast(20010203101112.5 as double) as datetime(1));
select cast(cast(010203101112.12 as double) as datetime(2));
select cast(cast(20010203101112.121314 as decimal(32,6)) as datetime(6));
select cast(20010203101112.121314 as datetime(6));