diff options
author | unknown <ramil@mysql.com> | 2005-11-28 14:52:38 +0400 |
---|---|---|
committer | unknown <ramil@mysql.com> | 2005-11-28 14:52:38 +0400 |
commit | 6cc4218f217de29de43aaae07f1137d9cdfb6e65 (patch) | |
tree | aa9c1450ecf6fe9c5aec8b003a7fb5bead9fd02b /mysql-test/t/count_distinct3.test | |
parent | 57e1c5aa9a56bbe75f3a0bc8344b3a1346438bbb (diff) | |
download | mariadb-git-6cc4218f217de29de43aaae07f1137d9cdfb6e65.tar.gz |
Fix for bug #12956: cast make differ rounding.
sql/item_func.cc:
Fix for bug #12956: cast make differ rounding.
- call rint() as we do in the Field_*int*::store(double)
Diffstat (limited to 'mysql-test/t/count_distinct3.test')
-rw-r--r-- | mysql-test/t/count_distinct3.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/t/count_distinct3.test b/mysql-test/t/count_distinct3.test index 52a4f271dac..f817b2c635d 100644 --- a/mysql-test/t/count_distinct3.test +++ b/mysql-test/t/count_distinct3.test @@ -17,7 +17,7 @@ while ($1) SET @rnd= RAND(); SET @id = CAST(@rnd * @rnd_max AS UNSIGNED); SET @id_rev= @rnd_max - @id; - SET @grp= CAST(128.0 * @rnd AS UNSIGNED); + SET @grp= CAST(127.0 * @rnd AS UNSIGNED); INSERT INTO t1 (id, grp, id_rev) VALUES (@id, @grp, @id_rev); dec $1; } |