Below is the list of changes that have just been committed into a local
5.1 repository of kaa. When kaa does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2006-09-22 19:42:27+04:00, kaa@stripped +2 -0
Merge polly.local:/tmp/22129/bug22129/my50-bug22129
into polly.local:/tmp/22129/bug22129/my51-bug22129
MERGE: 1.1810.2099.4
mysql-test/r/type_float.result@stripped, 2006-09-22 19:42:13+04:00, kaa@stripped +0 -0
Auto merged
MERGE: 1.42.1.5
mysql-test/t/type_float.test@stripped, 2006-09-22 19:42:14+04:00, kaa@stripped +0 -0
Auto merged
MERGE: 1.29.1.2
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: kaa
# Host: polly.local
# Root: /tmp/22129/bug22129/my51-bug22129/RESYNC
--- 1.48/mysql-test/r/type_float.result 2006-09-22 19:42:35 +04:00
+++ 1.49/mysql-test/r/type_float.result 2006-09-22 19:42:35 +04:00
@@ -262,6 +262,13 @@ desc t3;
Field Type Null Key Default Extra
a decimal(21,2) NO 0.00
drop table t1,t2,t3;
+select 1e-308, 1.00000001e-300, 100000000e-300;
+1e-308 1.00000001e-300 100000000e-300
+0 1.00000001e-300 1e-292
+select 10e307;
+10e307
+1e+308
+End of 4.1 tests
create table t1 (s1 float(0,2));
ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column 's1').
create table t1 (s1 float(1,2));
--- 1.31/mysql-test/t/type_float.test 2006-09-22 19:42:35 +04:00
+++ 1.32/mysql-test/t/type_float.test 2006-09-22 19:42:35 +04:00
@@ -178,7 +178,16 @@ show warnings;
desc t3;
drop table t1,t2,t3;
-# End of 4.1 tests
+#
+# Bug #22129: A small double precision number becomes zero
+#
+# check if underflows are detected correctly
+select 1e-308, 1.00000001e-300, 100000000e-300;
+
+# check if overflows are detected correctly
+select 10e307;
+
+--echo End of 4.1 tests
#
# bug #12694 (float(m,d) specifications)
| Thread |
|---|
| • bk commit into 5.1 tree (kaa:1.2343) | Alexey Kopytov | 22 Sep |