summaryrefslogtreecommitdiff
path: root/mysql-test/t/count_distinct3.test
diff options
context:
space:
mode:
authorunknown <ramil@mysql.com>2005-11-28 14:52:38 +0400
committerunknown <ramil@mysql.com>2005-11-28 14:52:38 +0400
commit6cc4218f217de29de43aaae07f1137d9cdfb6e65 (patch)
treeaa9c1450ecf6fe9c5aec8b003a7fb5bead9fd02b /mysql-test/t/count_distinct3.test
parent57e1c5aa9a56bbe75f3a0bc8344b3a1346438bbb (diff)
downloadmariadb-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.test2
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;
}